結果

問題 No.933 おまわりさんこいつです
ユーザー pekempeypekempey
提出日時 2019-11-29 21:45:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 82,248 KB
実行使用メモリ 89,548 KB
最終ジャッジ日時 2024-04-30 23:14:03
合計ジャッジ時間 2,382 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
52,180 KB
testcase_01 AC 41 ms
52,820 KB
testcase_02 AC 40 ms
52,504 KB
testcase_03 AC 40 ms
51,944 KB
testcase_04 AC 39 ms
52,108 KB
testcase_05 AC 40 ms
52,536 KB
testcase_06 AC 40 ms
52,896 KB
testcase_07 AC 41 ms
53,212 KB
testcase_08 AC 40 ms
52,140 KB
testcase_09 AC 41 ms
54,116 KB
testcase_10 AC 40 ms
53,052 KB
testcase_11 AC 40 ms
52,532 KB
testcase_12 AC 41 ms
52,408 KB
testcase_13 AC 47 ms
60,232 KB
testcase_14 AC 46 ms
60,388 KB
testcase_15 AC 45 ms
62,460 KB
testcase_16 AC 51 ms
66,556 KB
testcase_17 AC 60 ms
74,460 KB
testcase_18 AC 41 ms
53,376 KB
testcase_19 AC 62 ms
79,536 KB
testcase_20 AC 63 ms
78,940 KB
testcase_21 AC 40 ms
52,324 KB
testcase_22 AC 41 ms
52,012 KB
testcase_23 AC 75 ms
89,548 KB
testcase_24 AC 76 ms
89,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
P = list(map(int, input().split()))
if 0 in P:
  print(0)
else:
  ans = 1
  for x in P:
    ans *= x
    ans %= 9
  print((ans - 1) % 9 + 1)
0