結果
問題 | No.1317 月曜日の朝、WAを出した |
ユーザー | roaris |
提出日時 | 2020-12-23 23:33:53 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 142 ms / 1,500 ms |
コード長 | 548 bytes |
コンパイル時間 | 383 ms |
コンパイル使用メモリ | 81,752 KB |
実行使用メモリ | 76,368 KB |
最終ジャッジ日時 | 2023-10-21 15:21:34 |
合計ジャッジ時間 | 1,261 ms |
ジャッジサーバーID (参考情報) |
judge10 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 39 ms
53,284 KB |
testcase_01 | AC | 115 ms
76,156 KB |
testcase_02 | AC | 142 ms
76,368 KB |
testcase_03 | AC | 120 ms
76,112 KB |
ソースコード
import sys input = sys.stdin.readline N = int(input()) for _ in range(N): l = list(map(int, input().split())) l2 = list(map(int, input().split())) X = input()[:-1] if X=='WA': mark = 1 elif X=='TLE': mark = 2 elif X=='MLE': mark = 3 elif X=='OLE': mark = 4 else: mark = 5 if l[mark]!=0: print('No') continue for i in range(1, 6): if i!=mark and l2[i]!=0: print('No') break else: print('Yes')