結果
| 問題 | 
                            No.1317 月曜日の朝、WAを出した
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2021-02-25 19:09:52 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 468 bytes | 
| コンパイル時間 | 296 ms | 
| コンパイル使用メモリ | 82,852 KB | 
| 実行使用メモリ | 77,168 KB | 
| 最終ジャッジ日時 | 2024-10-01 09:19:42 | 
| 合計ジャッジ時間 | 1,501 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 WA * 3 | 
ソースコード
N = int(input())
men = {"AC": 0, "WA": 1, "TLE": 2, "MLE": 3, "OLE": 4, "RE": 5}
for case in range(N):
    Bef = list(map(int, input().split()))
    Aft = list(map(int, input().split()))
    x = men[input()]
    ans = True
    befsum = 0
    for i in range(1, 6):
        if i != x:
            if Aft[i] > 0:
                ans = False
                break
        befsum += Bef[i]
    if ans and befsum <= Aft[x]:
        print("Yes")
    else:
        print("No")