Guest User

Untitled

a guest
Feb 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. unsigned long long int reverse(int a)
  3. { unsigned long long int digit,s=0; while(a){ s=s*10+a%10; a=a/10; } return s; }
  4. int main(void)
  5. { int t; scanf("%d",&t); for(int i=0;i<t;i++){ unsigned long long int a,b; scanf("%llu%llu",&a,&b);
  6. printf("%llu\n",reverse(reverse(a)+reverse(b))); }
  7. return 0; }
Add Comment
Please, Sign In to add comment