結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー hiragnhiragn
提出日時 2022-11-24 08:46:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 142 ms / 1,500 ms
コード長 450 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 11,944 KB
実行使用メモリ 10,100 KB
最終ジャッジ日時 2023-10-26 00:52:51
合計ジャッジ時間 1,330 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

def main():
    n = int(input())
    for _ in range(n):
        result0 = list(map(int, input().split()))
        result1 = list(map(int, input().split()))
        x = input()
        
        i = ['AC', 'WA', 'TLE', 'MLE', 'OLE', 'RE'].index(x)
        if result0[i] == 0 and all(result1[j] == 0 for j in range(1, 6) if i != j):
            ans = "Yes"
        else:
            ans = "No"
        print(ans)


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