Search found 1 match

by palusijf
Fri Oct 16, 2015 4:48 pm
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 44049

Re: 10018 - Reverse and Add

Hello,

All test are OK but I still have WA !
Could you help me please ?
Here the code :

#include <stdio.h>
#include <stdlib.h>
int revNumber( long long n )
{
long long rev = 0;
while(n) {
rev = rev * 10 + (n % 10);
n /= 10;
}
return rev;
}
int main()
{
int nbCase = 0, i = 0;
int count = 0 ...

Go to advanced search