Guest User

Untitled

a guest
Feb 17th, 2019
100
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> unsigned long long int reverse(int a){ unsigned long long int digit,s=0; while(a){ s=s*10+a%10; a=a/10; } return s; } int main(void) { int t; scanf("%d",&t); for(int i=0;i<t;i++){ unsigned long long int a,b; scanf("%llu%llu",&a,&b); printf("%llu\n",reverse(reverse(a)+reverse(b))); } return 0; }
Add Comment
Please, Sign In to add comment