|
|
back to boardAny Ideas why do not work (WA test 1)? #include <stdio.h> int main() { #ifndef ONLINE_JUDGE freopen("input.txt", "rt", stdin); freopen("output.txt", "wt", stdout); #endif int L,a; int K = 0; int W; int C; scanf("%d", &L); getchar(); C = getchar(); while (C != EOF) { K++; C = getchar(); } W = L; a = L; while (a-K > 0) { a -= K; W *= a; } printf("%d", W); return 0; } |
|
|