結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー KudeKude
提出日時 2020-12-15 13:43:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 172 ms / 1,500 ms
コード長 351 bytes
コンパイル時間 1,823 ms
コンパイル使用メモリ 81,716 KB
実行使用メモリ 76,616 KB
最終ジャッジ日時 2023-10-20 05:59:20
合計ジャッジ時間 1,842 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,424 KB
testcase_01 AC 172 ms
76,468 KB
testcase_02 AC 168 ms
76,548 KB
testcase_03 AC 162 ms
76,616 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

d = dict(zip(['AC', 'WA', 'TLE', 'MLE', 'OLE', 'RE'], range(6)))

for _ in range(int(input())):
    s = list(map(int, input().split()))
    ns = list(map(int, input().split()))
    x = d[input()]
    ans = ('Yes' if (s[x] == 0 and
                     not any(ns[1:x]) and
                     not any(ns[x+1:])) else
            'No')
    print(ans)
0