結果

問題 No.933 おまわりさんこいつです
ユーザー rhincodon66rhincodon66
提出日時 2019-11-29 23:20:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 182 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 10,644 KB
実行使用メモリ 13,688 KB
最終ジャッジ日時 2023-08-13 06:52:50
合計ジャッジ時間 5,278 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
12,284 KB
testcase_01 AC 15 ms
7,788 KB
testcase_02 AC 15 ms
7,764 KB
testcase_03 AC 15 ms
7,868 KB
testcase_04 AC 16 ms
7,920 KB
testcase_05 AC 15 ms
7,860 KB
testcase_06 AC 16 ms
7,916 KB
testcase_07 AC 16 ms
7,872 KB
testcase_08 AC 15 ms
7,872 KB
testcase_09 AC 16 ms
7,872 KB
testcase_10 AC 16 ms
7,864 KB
testcase_11 AC 20 ms
7,952 KB
testcase_12 AC 29 ms
7,764 KB
testcase_13 AC 316 ms
8,180 KB
testcase_14 AC 648 ms
8,624 KB
testcase_15 TLE -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
p = list(map(int,input().split()))
k = 1
for i in range(n):
  k *= p[i]
while k >= 10:
  sum = 0
  while(k > 0):
    sum += k % 10
    k = k // 10
  k = sum
print(k)
0