# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
917334 | rainboy | 방 배정하기 (KOI17_room) | C++17 | 1 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 a, b, c, n, k, l, m;
scanf("%d%d%d%d", &a, &b, &c, &n);
for (k = 0; a * k <= n; k++)
for (l = 0; (m = a * k + b * l) <= n; l++)
if ((n - m) % c == 0) {
printf("1\n");
return 0;
}
printf("0\n");
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... |