結果

問題 No.1317 月曜日の朝、WAを出した
コンテスト
ユーザー wolgnik
提出日時 2020-12-14 05:04:42
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 447 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 163 ms
コンパイル使用メモリ 85,388 KB
実行使用メモリ 81,416 KB
最終ジャッジ日時 2026-04-08 12:45:10
合計ジャッジ時間 1,966 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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
  if sum(a) - a[0] != sum(b) - b[0]:
    print("No")
    continue
  for i in range(6):
    if judges[i] == x and sum(a) - a[0] == b[i]:
      print("Yes")
      break
  else: print("No")
0