結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー gorugo30gorugo30
提出日時 2021-02-25 19:32:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 173 ms / 1,500 ms
コード長 484 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 77,120 KB
最終ジャッジ日時 2024-04-08 17:38:01
合計ジャッジ時間 1,273 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,460 KB
testcase_01 AC 173 ms
77,120 KB
testcase_02 AC 167 ms
77,024 KB
testcase_03 AC 167 ms
76,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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] and Bef[x] == 0:
        print("Yes")
    else:
        print("No")
0