# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
71738 | 퍼솔 가즈아ㅏㅏㅏ (#119) | Angelic Hourglass (FXCUP3_hourglass) | C++14 | 3 ms | 628 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 <cstdio>
int a[20]={0,0,0,1,-1,1,2,4,2,3,2,3,4,3,4,3};
int main(){
int N;
scanf("%d",&N);
if(N<16) printf("%d",a[N]);
else{
if(N%5==0) return N/5;
else if(N%5==1 || N%5==3) return N/5+1;
else return N/5+2;
}
}
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... |