Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(String[] args) {
- int n = Convert.ToInt32(Console.ReadLine());
- string[] ar_temp = Console.ReadLine().Split(' ');
- int[] arr = Array.ConvertAll(ar_temp,Int32.Parse);
- Array.Sort(arr);
- Array.Reverse(arr);
- int result = 0;
- foreach (var x in arr){
- if (x == arr[0]){
- result++;
- }
- }
- Console.WriteLine(result);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement