mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-10-15 20:15:41 +00:00
[Init] Solved solutions
This commit is contained in:
1 parent
51f667ac81
commit
20542601dd
131 files changed
+4148
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace problem_961A
|
||||
{
|
||||
class problem_961A
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
int[] ip1 = Console.ReadLine().Split().Select(int.Parse).ToArray();
|
||||
int[] ip2 = Console.ReadLine().Split().Select(int.Parse).ToArray();
|
||||
int[] a = new int[ip1[0]];
|
||||
for (int i = 0; i < ip1[1]; i++)
|
||||
{
|
||||
a[ip2[i] - 1]++;
|
||||
}
|
||||
Console.Write("{0}", a.Min());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user