結果
問題 |
No.1317 月曜日の朝、WAを出した
|
ユーザー |
|
提出日時 | 2021-08-23 06:24:10 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 175 ms / 1,500 ms |
コード長 | 426 bytes |
コンパイル時間 | 366 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 77,440 KB |
最終ジャッジ日時 | 2024-11-07 06:47:04 |
合計ジャッジ時間 | 1,442 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
def solve(): awt = list(map(int, input().split())) awt2 = list(map(int, input().split())) x = input() pos = " WTMOR".index(x[0]) if awt2[0] > awt[0] or awt[pos] != 0: print("No") return for i in range(1, 6): if pos == i: continue if awt2[i] != 0: print("No") return print("Yes") for _ in range(int(input())): solve()