# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
83373 | 2018-11-07T12:34:58 Z | tjdgus4384 | 방 배정하기 (KOI17_room) | C++14 | 3 ms | 820 KB |
#include<cstdio> int d[401]; int main() { int n, a, b, c; scanf("%d %d %d %d", &a, &b, &c, &n); d[0] = 1; for(int i = 0;i <= n;i++) { if(d[i] == 1) { d[i + a] = 1; d[i + b] = 1; d[i + c] = 1; } } printf("%d", d[n]); return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 256 KB | Output is correct |
2 | Correct | 2 ms | 504 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 504 KB | Output is correct |
2 | Correct | 2 ms | 528 KB | Output is correct |
3 | Correct | 2 ms | 564 KB | Output is correct |
4 | Correct | 2 ms | 620 KB | Output is correct |
5 | Correct | 2 ms | 620 KB | Output is correct |
6 | Correct | 2 ms | 648 KB | Output is correct |
7 | Correct | 2 ms | 696 KB | Output is correct |
8 | Correct | 2 ms | 696 KB | Output is correct |
9 | Correct | 2 ms | 696 KB | Output is correct |
10 | Correct | 2 ms | 696 KB | Output is correct |
11 | Correct | 2 ms | 696 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 504 KB | Output is correct |
2 | Correct | 2 ms | 528 KB | Output is correct |
3 | Correct | 2 ms | 564 KB | Output is correct |
4 | Correct | 2 ms | 620 KB | Output is correct |
5 | Correct | 2 ms | 620 KB | Output is correct |
6 | Correct | 2 ms | 648 KB | Output is correct |
7 | Correct | 2 ms | 696 KB | Output is correct |
8 | Correct | 2 ms | 696 KB | Output is correct |
9 | Correct | 2 ms | 696 KB | Output is correct |
10 | Correct | 2 ms | 696 KB | Output is correct |
11 | Correct | 2 ms | 696 KB | Output is correct |
12 | Correct | 2 ms | 696 KB | Output is correct |
13 | Correct | 2 ms | 696 KB | Output is correct |
14 | Correct | 2 ms | 744 KB | Output is correct |
15 | Correct | 2 ms | 744 KB | Output is correct |
16 | Correct | 2 ms | 744 KB | Output is correct |
17 | Correct | 2 ms | 744 KB | Output is correct |
18 | Correct | 2 ms | 744 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 256 KB | Output is correct |
2 | Correct | 2 ms | 504 KB | Output is correct |
3 | Correct | 2 ms | 504 KB | Output is correct |
4 | Correct | 2 ms | 528 KB | Output is correct |
5 | Correct | 2 ms | 564 KB | Output is correct |
6 | Correct | 2 ms | 620 KB | Output is correct |
7 | Correct | 2 ms | 620 KB | Output is correct |
8 | Correct | 2 ms | 648 KB | Output is correct |
9 | Correct | 2 ms | 696 KB | Output is correct |
10 | Correct | 2 ms | 696 KB | Output is correct |
11 | Correct | 2 ms | 696 KB | Output is correct |
12 | Correct | 2 ms | 696 KB | Output is correct |
13 | Correct | 2 ms | 696 KB | Output is correct |
14 | Correct | 2 ms | 696 KB | Output is correct |
15 | Correct | 2 ms | 696 KB | Output is correct |
16 | Correct | 2 ms | 744 KB | Output is correct |
17 | Correct | 2 ms | 744 KB | Output is correct |
18 | Correct | 2 ms | 744 KB | Output is correct |
19 | Correct | 2 ms | 744 KB | Output is correct |
20 | Correct | 2 ms | 744 KB | Output is correct |
21 | Correct | 2 ms | 744 KB | Output is correct |
22 | Correct | 2 ms | 744 KB | Output is correct |
23 | Correct | 2 ms | 744 KB | Output is correct |
24 | Correct | 2 ms | 744 KB | Output is correct |
25 | Correct | 2 ms | 744 KB | Output is correct |
26 | Correct | 2 ms | 744 KB | Output is correct |
27 | Correct | 2 ms | 744 KB | Output is correct |
28 | Correct | 2 ms | 744 KB | Output is correct |
29 | Correct | 2 ms | 744 KB | Output is correct |
30 | Correct | 3 ms | 744 KB | Output is correct |
31 | Correct | 2 ms | 820 KB | Output is correct |
32 | Correct | 2 ms | 820 KB | Output is correct |