Search found 2 matches

by da729vid
Tue May 21, 2013 4:05 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 58116

Re: 10035 - Primary Arithmetic

Thank you. I don't know why I always got wrong answer yesterday with this code.
But I got AC now. Thanks.
by da729vid
Mon May 20, 2013 9:27 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 58116

Re: 10035 - Primary Arithmetic

What is wrong with my problem? I got wrong answer. My code: #include<iostream> #include<cstdlib> using namespace std; int main() { int num1,num2,count,add; cin>>num1>>num2; while(num1||num2) { count=0; add=0; while(num1||num2) { add=(num1%10+num2%10+add)/10; if(add) { count++; } num1/=10; num2/=10; ...

Go to advanced search