Search found 1 match

by yaohsiao
Thu Feb 04, 2016 6:40 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 59420

Re: 10035 - Primary Arithmetic

HELP!!why WA?I have already tried many cases and the answer is correct. #include <stdio.h> int main(void) { unsigned int a, b; int carry, c, mod1, mod2; while(1) { scanf("%u %u",&a, &b); carry = 0; if(a == 0 && b == 0) { break; } if(b > a) { a = a^b; b = a^b; a = a^b; } while(a > 0) { mod1 = a%10; ...

Go to advanced search