add: boj/1769.py

This commit is contained in:
Gyubin Han
2024-05-09 01:29:52 +09:00
parent 143d40d2a8
commit 81182f9555

17
boj/1769.py Normal file
View File

@@ -0,0 +1,17 @@
n=input()
count=0
r=int(n)
while len(n)>1:
r=0
for i in n:
v=int(i)
r+=v
n=str(r)
count+=1
print(count)
if r%3==0:
print("YES")
else:
print("NO")