mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-10-14 22:17:18 +00:00
[Init] Solved solutions
This commit is contained in:
1 parent
51f667ac81
commit
20542601dd
131 files changed
+4148
No files matched your search
+22
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
|
||||
namespace _721B
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
int[] a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
|
||||
int[] l = new int[a[0]];
|
||||
for (int i = 0; i < a[0]; i++)
|
||||
{
|
||||
l[i] = Console.ReadLine().Length;
|
||||
}
|
||||
int lp = Console.ReadLine().Length;
|
||||
Array.Sort(l);
|
||||
int p1 = Array.IndexOf(l, lp);
|
||||
int p2 = Array.LastIndexOf(l, lp);
|
||||
Console.Write("{0} {1}", p1 / a[1] * 5 + p1 + 1, p2 / a[1] * 5 + p2 + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user