結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー WizistWizist
提出日時 2020-12-17 03:30:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 437 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 81,848 KB
実行使用メモリ 77,112 KB
最終ジャッジ日時 2023-10-20 10:33:20
合計ジャッジ時間 1,265 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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 = input()
	ans = True
	if sum(a) != sum(b):
		ans = False
	else:
		if b[m[x]] - a[m[x]] <= 0:
			ans = False

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


0