結果
| 問題 | No.1317 月曜日の朝、WAを出した |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-23 06:24:10 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 169 ms / 1,500 ms |
| コード長 | 426 bytes |
| 記録 | |
| コンパイル時間 | 200 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 81,788 KB |
| 最終ジャッジ日時 | 2026-05-07 15:32:55 |
| 合計ジャッジ時間 | 1,704 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
def solve():
awt = list(map(int, input().split()))
awt2 = list(map(int, input().split()))
x = input()
pos = " WTMOR".index(x[0])
if awt2[0] > awt[0] or awt[pos] != 0:
print("No")
return
for i in range(1, 6):
if pos == i:
continue
if awt2[i] != 0:
print("No")
return
print("Yes")
for _ in range(int(input())):
solve()