# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
71805 | the_general (#119) | Angelic Hourglass (FXCUP3_hourglass) | C++11 | 4 ms | 560 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;
int main(){
scanf("%d", &n);
if(n==4){
printf("-1\n");
return 0;
}
else if(n%5==0){
printf("%d\n", n/5);
return 0;
}
else if(n%5==1){
printf("%d\n", n/5+1);
return 0;
}
else if(n%5==3){
printf("%d\n", n/5+1);
return 0;
}
else if(n%5==4){
printf("%d\n", n/5+2);
return 0;
}
else{
printf("%d\n", n/5+3);
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... |