結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー ayaoniayaoni
提出日時 2020-12-14 00:27:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 117 ms / 1,500 ms
コード長 809 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 81,860 KB
実行使用メモリ 76,836 KB
最終ジャッジ日時 2023-10-20 04:35:09
合計ジャッジ時間 1,179 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,508 KB
testcase_01 AC 117 ms
76,768 KB
testcase_02 AC 117 ms
76,836 KB
testcase_03 AC 117 ms
76,464 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 = {'WA':1,'TLE':2,'MLE':3,'OLE':4,'RE':5}

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