A問題 I Scream
1 2 3 4 5 6 7 8 9 10 11 |
a,b = map(int,input().split()) x=a+b if x>=15 and b>=8: print(1) elif x>=10 and b>=3: print(2) elif x>=3: print(3) else: print(4) |
1 2 3 4 5 6 7 8 9 10 11 |
a,b = map(int,input().split()) x=a+b if x>=15 and b>=8: print(1) elif x>=10 and b>=3: print(2) elif x>=3: print(3) else: print(4) |
コメント