結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー trineutrontrineutron
提出日時 2020-12-14 01:29:17
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 140 ms / 1,500 ms
コード長 358 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 11,896 KB
実行使用メモリ 10,036 KB
最終ジャッジ日時 2023-10-20 04:37:05
合計ジャッジ時間 1,016 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

result = {'AC': 0, 'WA': 1, 'TLE': 2, 'MLE': 3, 'OLE': 4, 'RE': 5}

def solve():
    before = list(map(int, input().split()))
    after = list(map(int, input().split()))
    idx = result[input()]
    if before[idx] == 0 and sum(after[1:]) - after[idx] == 0:
        print('Yes')
    else:
        print('No')

n = int(input())
for i in range(n):
    solve()
0