Guest User

Untitled

a guest
Mar 22nd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. class Solution {
  4. public static void main(String[] args) {
  5. Scanner sc = new Scanner(System.in);
  6. int T = sc.nextInt();
  7. for (int t = 1; t <= T; t++) {
  8. long a=sc.nextInt();
  9. long b=sc.nextInt();
  10. long power=a/b;
  11. System.out.println("#"+t+" "+power*power);
  12. }
  13. sc.close();
  14. }
  15. }
Add Comment
Please, Sign In to add comment