結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー googol_S0googol_S0
提出日時 2020-12-14 00:12:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 427 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 81,696 KB
実行使用メモリ 77,372 KB
最終ジャッジ日時 2023-10-20 04:34:19
合計ジャッジ時間 1,195 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N=int(input())
S=['AC','WA','TLE','MLE','OLE','RE']
for i in range(N):
  A=list(map(int,input().split()))
  B=list(map(int,input().split()))
  X=input()
  Y=0
  f=0
  for j in range(1,len(A)):
    if S[j]==X:
      Y=A[j]
  Z=0
  for j in range(1,len(B)):
    if S[j]==X:
      Z=B[j]
  if max(A)==A[0]:
    print('Yes')
  else:
    if Y:
      print('No')
    elif Z==sum(A[1:]):
      print('Yes')
    else:
      print('No')
0