結果
問題 | No.1317 月曜日の朝、WAを出した |
ユーザー | titia |
提出日時 | 2020-12-14 05:37:52 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 152 ms / 1,500 ms |
コード長 | 608 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 11,848 KB |
実行使用メモリ | 10,104 KB |
最終ジャッジ日時 | 2023-10-20 04:41:52 |
合計ジャッジ時間 | 1,150 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 29 ms
10,088 KB |
testcase_01 | AC | 152 ms
10,104 KB |
testcase_02 | AC | 150 ms
10,104 KB |
testcase_03 | AC | 151 ms
10,104 KB |
ソースコード
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-A1 if r<0: print("No") continue 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")