結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー lloyzlloyz
提出日時 2023-04-21 00:00:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 290 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-23 17:50:44
合計ジャッジ時間 1,413 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,624 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

convert = {'WA': 1, 'TLE': 2, 'MLE': 3, 'OLE': 4, 'RE': 5}

for _ in range(int(input())):
    A = list(map(int, input().split()))
    B = list(map(int, input().split()))
    s = input()
    idx = convert[s]
    if sum(A) - A[0] <= B[idx]:
        print("Yes")
    else:
        print("No")
0