結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー 👑 rin204rin204
提出日時 2021-08-23 06:22:27
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 409 bytes
コンパイル時間 472 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 77,696 KB
最終ジャッジ日時 2024-04-24 21:34:44
合計ジャッジ時間 2,183 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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]:
        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()
0