Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Test
- {
- public static void Main(string[] args)
- {
- int t = int.Parse(Console.ReadLine());
- for (int i = 0; i < t; i++)
- {
- string[] tab = Console.ReadLine().Split(' ');
- int ilu = int.Parse(tab[0]);
- double ile = int.Parse(tab[1]);
- double day = 60 * 60 * 24;
- double zjedli = 0;
- for (int j = 0; j < ilu; j++)
- {
- zjedli += Math.Floor(day / double.Parse(Console.ReadLine()));
- }
- Console.WriteLine(Math.Ceiling(zjedli/ile));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement