# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
71820 | 내일_개학이다_ㅠㅠ (#119) | Angelic Hourglass (FXCUP3_hourglass) | C++17 | 3 ms | 596 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<bits/stdc++.h>
using namespace std;
int main(){
int n;
scanf("%d", &n);
if(n == 4) printf("-1\n");
else if(n == 7) printf("4\n");
else if(n%5 == 0) printf("%d\n", n/5);
else if(n%5 == 1) printf("%d\n", n/5+1);
else if(n%5 == 2) printf("%d\n", n/5+2);
else if(n%5 == 3) printf("%d\n", n/5+1);
else if(n%5 == 4) printf("%d\n", 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... |