A問題 ∴ (Therefore)
1 2 3 4 5 6 7 8 9 10 |
n = input() a = [2,4,5,7,9] b = [0,1,6,8] c = [3] if int(n[-1]) in a: print('hon') elif int(n[-1]) in b: print('pon') else: print('bon') |
1 2 3 4 5 6 7 8 9 10 |
n = input() a = [2,4,5,7,9] b = [0,1,6,8] c = [3] if int(n[-1]) in a: print('hon') elif int(n[-1]) in b: print('pon') else: print('bon') |
コメント