結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー ayaoniayaoni
提出日時 2020-12-14 00:23:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 119 ms / 1,500 ms
コード長 823 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 81,852 KB
実行使用メモリ 77,296 KB
最終ジャッジ日時 2023-10-20 04:34:59
合計ジャッジ時間 1,062 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,532 KB
testcase_01 AC 95 ms
76,296 KB
testcase_02 AC 118 ms
76,772 KB
testcase_03 AC 119 ms
77,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def LS2(): return list(sys.stdin.readline().rstrip())


N = I()
d = {}
d['WA'] = 1
d['TLE'] = 2
d['MLE'] = 3
d['OLE'] = 4
d['RE'] = 5

for _ in range(N):
    A0 = LI()
    A1 = LI()
    X = S()
    wrong = sum(A0[1:])
    r = d[X]
    for i in range(1,6):
        if i != r and A1[i] != 0:
            print('No')
            break
    else:
        if A0[r] > 0:
            print('No')
        else:
            print('Yes')
0