first commit
from old repository to a new repository
This commit is contained in:
16
boj/2839.py
Normal file
16
boj/2839.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from sys import stdin
|
||||
n=int(stdin.readline().rstrip())
|
||||
res=0
|
||||
|
||||
while n>0:
|
||||
if n%5==0:
|
||||
res+=n//5
|
||||
break
|
||||
n-=3
|
||||
res+=1
|
||||
|
||||
if n==1 or n==2:
|
||||
res=-1
|
||||
break
|
||||
|
||||
print(res)
|
||||
Reference in New Issue
Block a user