import java.util.Scanner; class Another { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int testCases = scanner.nextInt(); int counter = 0; while (testCases-- > 0) { counter++; int mild = 0, juice = 0; int n = scanner.nextInt(); for (int i=0;i<n;i++) { int time = scanner.nextInt(); mild += (time/30)+1; juice += (time/60) + 1; } mild = mild*10; juice = juice*15; if (mild < juice) { System.out.println("Case "+counter+": Mile "+mild); } else if (mild > juice) { System.out.println("Case "+counter+": Juice "+juice); } else { System.out.println("Case "+counter+": Mile Juice "+mild); } } } }
বুধবার, ১৪ জুন, ২০১৭
12157 - Tariff Plan
এতে সদস্যতা:
মন্তব্যগুলি পোস্ট করুন (Atom)
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন