結果
| 問題 | 
                            No.1317 月曜日の朝、WAを出した
                             | 
                    
| コンテスト | |
| ユーザー | 
                             titia
                         | 
                    
| 提出日時 | 2020-12-14 05:38:46 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 175 ms / 1,500 ms | 
| コード長 | 559 bytes | 
| コンパイル時間 | 76 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-09-20 00:25:56 | 
| 合計ジャッジ時間 | 1,026 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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-A1
    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")
            
            
            
        
            
titia