結果
| 問題 | No.1317 月曜日の朝、WAを出した |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-25 19:32:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 179 ms / 1,500 ms |
| コード長 | 484 bytes |
| 記録 | |
| コンパイル時間 | 649 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 77,464 KB |
| 最終ジャッジ日時 | 2024-10-01 09:39:56 |
| 合計ジャッジ時間 | 1,343 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
N = int(input())
men = {"AC": 0, "WA": 1, "TLE": 2, "MLE": 3, "OLE": 4, "RE": 5}
for case in range(N):
Bef = list(map(int, input().split()))
Aft = list(map(int, input().split()))
x = men[input()]
ans = True
befsum = 0
for i in range(1, 6):
if i != x:
if Aft[i] > 0:
ans = False
break
befsum += Bef[i]
if ans and befsum <= Aft[x] and Bef[x] == 0:
print("Yes")
else:
print("No")