# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
922636 | rainboy | Ones (LMIO17_vienetai) | C11 | 1061 ms | 600 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
int main() {
int n, m, d, i, r, sum;
scanf("%d%d%d", &n, &m, &d);
if (n % m != 0) {
printf("NESIDALO\n");
return 0;
}
r = 0, sum = 0;
for (i = 0; i < n; i++) {
r = r * 10 + (i % m == m - 1 ? 1 : 0);
sum += r / d, r %= d;
}
if (r != 0)
printf("NESIDALO\n");
else
printf("%d\n", sum);
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |