Skip to content

Commit 57adbd0

Browse files
committed
Elephant
1 parent c617d3d commit 57adbd0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

617A.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include<iostream>
2+
using namespace std;
3+
4+
int main(){
5+
int n;
6+
cin>>n;
7+
8+
int steps = n % 5 == 0 ? n / 5 :(n / 5) + 1;
9+
cout<<steps;
10+
return 0;
11+
}

0 commit comments

Comments
 (0)