結果

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

テストケース

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

ソースコード

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 A0+W0+T0+M0+O0+R0==W1:
        print("Yes")
    elif X=="TLE" and T0==0 and A0+W0+T0+M0+O0+R0==T1:
        print("Yes")
    elif X=="MLE" and M0==0 and A0+W0+T0+M0+O0+R0==M1:
        print("Yes")
    elif X=="OLE" and O0==0 and A0+W0+T0+M0+O0+R0==O1:
        print("Yes")
    elif X=="RLE" and R0==0 and A0+W0+T0+M0+O0+R0==R1:
        print("Yes")
    else:
        print("No")
0