結果

問題 No.933 おまわりさんこいつです
ユーザー ptotqptotq
提出日時 2019-11-29 22:03:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 136 bytes
コンパイル時間 428 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 18,976 KB
最終ジャッジ日時 2023-08-13 05:35:26
合計ジャッジ時間 2,298 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,664 KB
testcase_01 AC 19 ms
8,472 KB
testcase_02 AC 20 ms
8,516 KB
testcase_03 AC 19 ms
8,616 KB
testcase_04 AC 19 ms
8,616 KB
testcase_05 AC 20 ms
8,648 KB
testcase_06 AC 19 ms
8,672 KB
testcase_07 AC 19 ms
8,644 KB
testcase_08 AC 19 ms
8,624 KB
testcase_09 AC 20 ms
8,480 KB
testcase_10 AC 19 ms
8,580 KB
testcase_11 AC 19 ms
8,572 KB
testcase_12 AC 19 ms
8,628 KB
testcase_13 AC 21 ms
8,884 KB
testcase_14 AC 21 ms
8,964 KB
testcase_15 AC 24 ms
9,440 KB
testcase_16 AC 35 ms
10,916 KB
testcase_17 AC 51 ms
14,612 KB
testcase_18 AC 19 ms
8,516 KB
testcase_19 AC 62 ms
16,096 KB
testcase_20 AC 51 ms
9,736 KB
testcase_21 AC 19 ms
8,636 KB
testcase_22 AC 19 ms
8,592 KB
testcase_23 AC 77 ms
18,976 KB
testcase_24 AC 78 ms
18,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from functools import reduce
N = int(input())
print(reduce(lambda x, y: x * y % 9 or (x > 0 and y > 0)*9, map(int, input().split()), 1))
0