結果
| 問題 |
No.1317 月曜日の朝、WAを出した
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-30 20:19:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 114 ms / 1,500 ms |
| コード長 | 667 bytes |
| コンパイル時間 | 167 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 81,280 KB |
| 最終ジャッジ日時 | 2024-07-18 18:15:45 |
| 合計ジャッジ時間 | 1,385 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
import sys
def resolve():
inp = str1d()
n = int(inp[0])
error = {'WA':0,'TLE':1,'MLE':2,'OLE':3,'RE':4}
for i in range(n):
a0, *error0 = map(int,inp[3*i+1].split())
a1, *error1 = map(int,inp[3*i+2].split())
x=inp[3*i+3]
errorid = error[x]
if error0[errorid] > 0:
print('No')
continue
errorcase0 = sum(error0)
othererror1 = sum([error1[i] for i in range(5) if i != errorid])
if errorcase0<=error1[errorid] and othererror1 == 0:
print('Yes')
else:
print('No')
def str1d():return sys.stdin.read().splitlines()
resolve()