# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
204463 | 14kg | 방 배정하기 (KOI17_room) | C++11 | 5 ms | 376 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 n, in[4];
bool d[301];
int main() {
for(int i=1; i<=3; i++) scanf("%d",&in[i]);
scanf("%d",&n);
d[0]=true;
for(int i=1; i<=3; i++)
for(int j=in[i]; j<=n; j++)
if(d[j-in[i]]) d[j]=true;
printf("%d",d[n]);
}
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... |