結果
問題 | No.1317 月曜日の朝、WAを出した |
ユーザー |
![]() |
提出日時 | 2020-12-14 05:37:52 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 150 ms / 1,500 ms |
コード長 | 608 bytes |
コンパイル時間 | 80 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-09-20 00:25:54 |
合計ジャッジ時間 | 965 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
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()r=A0-A1if r<0:print("No")continueif 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")