[Init] Solved solutions

This commit is contained in:
tiennm99 committed 2023-03-02 20:58:03 +07:00
1 parent 51f667ac81
commit 20542601dd
131 files changed
+4148

No files matched your search

+22
View File
@@ -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);
}
}
}