結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
51,968 KB
testcase_01 AC 174 ms
77,056 KB
testcase_02 AC 172 ms
77,056 KB
testcase_03 AC 170 ms
77,312 KB
権限があれば一括ダウンロードができます

ソースコード

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