coderrohan14

Solution1Java

Sep 22nd, 2021
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. public class Solution{
  4. public static void main(String[] args){
  5. Scanner sc = new Scanner(System.in);
  6. int t = sc.nextInt();
  7. StringBuilder ans = new StringBuilder("");
  8. while (t-- > 0) {
  9. int n = sc.nextInt();
  10. int[] arr = new int[n];
  11. long sum=0;
  12. for(int i=0;i<n;i++){
  13. arr[i] = sc.nextInt();
  14. sum+=arr[i];
  15. }
  16. long res = ((28*60)-sum)/22;
  17. ans.append(res+"\n");
  18. }
  19. System.out.println(ans);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment