結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー titiatitia
提出日時 2020-12-14 05:38:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 547 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 11,856 KB
実行使用メモリ 10,152 KB
最終ジャッジ日時 2023-10-20 04:41:53
合計ジャッジ時間 684 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
for tests in range(N):
    A0,W0,T0,M0,O0,R0=map(int,input().split())
    A1,W1,T1,M1,O1,R1=map(int,input().split())
    X=input()
    if X=="WA" and W0==0 and r+W0+T0+M0+O0+R0==W1:
        print("Yes")
    elif X=="TLE" and T0==0 and r+W0+T0+M0+O0+R0==T1:
        print("Yes")
    elif X=="MLE" and M0==0 and r+W0+T0+M0+O0+R0==M1:
        print("Yes")
    elif X=="OLE" and O0==0 and r+W0+T0+M0+O0+R0==O1:
        print("Yes")
    elif X=="RE" and R0==0 and r+W0+T0+M0+O0+R0==R1:
        print("Yes")
    else:
        print("No")
0