python-algorithm
[백준] 14219
무적김두칠
2021. 1. 14. 10:23
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 |
반응형