|
|
back to boardDo I misunderstand with the problem? (Get WA.) 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. |
|
|