結果

問題 No.933 おまわりさんこいつです
ユーザー c-yanc-yan
提出日時 2020-12-09 11:51:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 172 bytes
コンパイル時間 448 ms
コンパイル使用メモリ 11,664 KB
実行使用メモリ 22,256 KB
最終ジャッジ日時 2023-10-19 04:49:10
合計ジャッジ時間 2,493 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,972 KB
testcase_01 AC 30 ms
9,972 KB
testcase_02 AC 29 ms
9,972 KB
testcase_03 AC 29 ms
9,972 KB
testcase_04 AC 29 ms
9,972 KB
testcase_05 AC 29 ms
9,972 KB
testcase_06 AC 29 ms
9,972 KB
testcase_07 AC 30 ms
9,972 KB
testcase_08 AC 30 ms
9,976 KB
testcase_09 AC 29 ms
9,976 KB
testcase_10 AC 29 ms
9,976 KB
testcase_11 AC 30 ms
9,996 KB
testcase_12 AC 29 ms
10,032 KB
testcase_13 AC 31 ms
10,344 KB
testcase_14 AC 31 ms
10,516 KB
testcase_15 AC 34 ms
11,076 KB
testcase_16 AC 45 ms
13,612 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 59 ms
11,728 KB
testcase_21 AC 30 ms
9,972 KB
testcase_22 AC 30 ms
9,972 KB
testcase_23 AC 87 ms
22,256 KB
testcase_24 AC 87 ms
22,256 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from functools import reduce

def f(x, y):
    t = x * y % 9
    if t == 0:
        return 9
    return t

N, *P = map(int, open(0).read().split())

print(reduce(f, P, 1))
0