daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Feb 17th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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; }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top