Guest User

Untitled

a guest
Mar 22nd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 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 a = 1; a <= t; a++) {
  8. int n=sc.nextInt();
  9. int m=sc.nextInt();
  10. System.out.println("#"+a+" "+(2*m-n)+" "+(n-m));
  11. }
  12. sc.close();
  13. }
  14. }
Add Comment
Please, Sign In to add comment