結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー 👑 tamatotamato
提出日時 2020-12-14 00:39:31
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 87 ms / 1,500 ms
コード長 612 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 82,136 KB
実行使用メモリ 76,376 KB
最終ジャッジ日時 2023-10-20 04:35:33
合計ジャッジ時間 959 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,820 KB
testcase_01 AC 84 ms
76,376 KB
testcase_02 AC 87 ms
76,340 KB
testcase_03 AC 82 ms
76,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    dic = {"WA": 1, "TLE": 2, "MLE": 3, "OLE": 4, "RE": 5}

    for _ in range(int(input())):
        A = list(map(int, input().split()))
        B = list(map(int, input().split()))
        i = dic[input().rstrip('\n')]
        ok = 1
        if A[i] != 0:
            ok = 0
        for j in range(1, 6):
            if i == j:
                continue
            if B[j] != 0:
                ok = 0
        if ok:
            print("Yes")
        else:
            print("No")


if __name__ == '__main__':
    main()
0