結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー lloyzlloyz
提出日時 2023-04-22 00:01:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 163 ms / 1,500 ms
コード長 428 bytes
コンパイル時間 456 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 77,664 KB
最終ジャッジ日時 2024-04-24 09:50:01
合計ジャッジ時間 1,587 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,712 KB
testcase_01 AC 160 ms
77,664 KB
testcase_02 AC 163 ms
77,184 KB
testcase_03 AC 157 ms
77,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

convert = {'WA': 1, 'TLE': 2, 'MLE': 3, 'OLE': 4, 'RE': 5}

for _ in range(int(input())):
    A = list(map(int, input().split()))
    B = list(map(int, input().split()))
    s = input()
    idx = convert[s]
    flag = True
    if A[idx] > 0:
        flag = False
    for i in range(1, 6):
        if i != idx:
            if B[i] > 0:
                flag = False
    if flag:
        print("Yes")
    else:
        print("No")
0