Advertisement
vovanhoangtuan

eeeeee

Apr 18th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Test
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. string[] value = Console.ReadLine().Split();
  14. int n = int.Parse(value[0]);
  15. int k = int.Parse(value[1]);
  16.  
  17. value = Console.ReadLine().Split();
  18.  
  19. int dem = 0;
  20.  
  21. for (int i = 0; i < n; i++)
  22. {
  23. if (k < int.Parse(value[i]) && k > 0) dem++;
  24. }
  25. Console.WriteLine(dem);
  26.  
  27.  
  28.  
  29.  
  30.  
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement