結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー 萩3萩3
提出日時 2021-04-30 20:19:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 148 ms / 1,500 ms
コード長 667 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 86,852 KB
実行使用メモリ 81,676 KB
最終ジャッジ日時 2023-09-25 22:35:47
合計ジャッジ時間 1,569 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,148 KB
testcase_01 AC 135 ms
81,676 KB
testcase_02 AC 148 ms
81,668 KB
testcase_03 AC 141 ms
81,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
def resolve():
    inp = str1d()
    n = int(inp[0])
    error = {'WA':0,'TLE':1,'MLE':2,'OLE':3,'RE':4}
    for i in range(n):
        a0, *error0 = map(int,inp[3*i+1].split())
        a1, *error1 = map(int,inp[3*i+2].split())
        x=inp[3*i+3]

        errorid = error[x]
        if error0[errorid] > 0:
            print('No')
            continue

        errorcase0 = sum(error0)
        othererror1 = sum([error1[i] for i in range(5) if i != errorid])
        if errorcase0<=error1[errorid] and othererror1 == 0:
            print('Yes')
        else:
            print('No')
            
def str1d():return sys.stdin.read().splitlines()
resolve()
0