A問題 Can’t Wait for Holiday
1 2 3 4 5 |
s = input() list = ['SUN','MON','TUE','WED','THU','FRI','SAT'] for i in range(len(list)): if s==list[i]: print(abs(7-i)) |
1 2 3 4 5 |
s = input() list = ['SUN','MON','TUE','WED','THU','FRI','SAT'] for i in range(len(list)): if s==list[i]: print(abs(7-i)) |
コメント