結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー wolgnikwolgnik
提出日時 2020-12-14 05:11:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 1,500 ms
コード長 394 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 81,848 KB
実行使用メモリ 76,060 KB
最終ジャッジ日時 2023-10-20 04:41:39
合計ジャッジ時間 996 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

import sys
input = sys.stdin.readline
judges = ['AC', 'WA', 'TLE', 'MLE', 'OLE', 'RE']
for _ in range(int(input())):
  a = list(map(int, input().split()))
  b = list(map(int, input().split()))
  x = input()[: -1]
  if a[0] < b[0]:
    print("No")
    continue
  for i in range(6):
    if judges[i] == x and sum(a) - b[0] == b[i] and a[i] == 0:
      print("Yes")
      break
  else: print("No")
0