Search found 1 match

by Bor-Yeh Shen
Mon Jan 20, 2003 7:48 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 55561

[107] - why WA?

i think i have solved problem 107, but i still get WA.

can any preson help me?...thanks a lot.

[c]
#include <stdio.h>

int
level(int num, int div)
{
int tmp = num;

while (tmp % div == 0)
{
tmp /= div;
}
return tmp;
}

main()
{
int tall, num, tmp;
int i, j, k;
int sum, sumtall;

while ...

Go to advanced search