1
2
3
4
5
6
|
a,b=map(int,input().split())
cnt=0
if a%3!=0 : cnt+=1
if b%3!=0 : cnt+=1
if cnt==2:print("NO")
else: print("YES")
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
[백준] 14487 (0) | 2021.01.14 |
---|---|
[백준] 14471 (0) | 2021.01.14 |
[백준] 13458 (0) | 2021.01.14 |
[백준] 13420 (0) | 2021.01.14 |
[백준] 13419 (0) | 2021.01.14 |
댓글