結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー WizistWizist
提出日時 2020-12-17 03:36:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 173 ms / 1,500 ms
コード長 460 bytes
コンパイル時間 781 ms
コンパイル使用メモリ 81,676 KB
実行使用メモリ 77,496 KB
最終ジャッジ日時 2023-10-20 10:34:18
合計ジャッジ時間 1,293 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#!/usr/bin/env python3
#
# No.1317 月曜日の朝、WAを出した
#
import sys, os, math

def read_ints(): return list(map(int, input().split()))

m = dict((x, i) for i, x in enumerate('AC WA TLE MLE OLE RE'.split()))

T = int(input())
for _ in range(T):
	a = read_ints()
	b = read_ints()
	x = m[input()]
	ans = True
	if a[x] != 0:
		ans = False
	for i in range(1, len(a)):
		if i == x: continue
		if b[i] != 0: ans = False

	print("Yes" if ans else "No")


0