Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Solution{
- public static void main(String[] args){
- Scanner sc = new Scanner(System.in);
- int t = sc.nextInt();
- StringBuilder ans = new StringBuilder("");
- while (t-- > 0) {
- int n = sc.nextInt();
- int[] arr = new int[n];
- long sum=0;
- for(int i=0;i<n;i++){
- arr[i] = sc.nextInt();
- sum+=arr[i];
- }
- long res = ((28*60)-sum)/22;
- ans.append(res+"\n");
- }
- System.out.println(ans);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment