first commit

from old repository to a new repository
This commit is contained in:
Gyubin Han
2024-04-30 16:59:10 +09:00
commit 2600340c03
93 changed files with 1610 additions and 0 deletions

16
boj/2839.py Normal file
View 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)