ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1049. Brave Balloonists

Do I misunderstand with the problem? (Get WA.)
Posted by za-Nuker 11 Apr 2005 13:46
I don't know if i misunderstood about this problem's output?
Because English isn't my preferred language.

Here is my program (It's seem to be corrected but got WA) :

#include <stdio.h>

int main(void)
{
...long arr, sum = 1, i, count = 0, start = 1;
...for(i=0; i<10; i++)
...{
......scanf("%ld",&arr);
......sum *= arr;
...}
...for(i=1; i*i <= sum; i++); // Count i

...while(start <= i-1)
...{
......if(sum % start == 0)
......{
.........if(sum/start == start)
............count++;
.........else
............count += 2;
......}
......start++;
...}

...printf("%ld",count%10);
...return 0;
}

e-mail me please, za-Nuker@hotmail.com
Thank you in advance.