結果

問題 No.933 おまわりさんこいつです
ユーザー O2MTO2MT
提出日時 2020-08-21 15:59:01
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 267 bytes
コンパイル時間 360 ms
コンパイル使用メモリ 82,452 KB
実行使用メモリ 268,600 KB
最終ジャッジ日時 2024-04-23 02:41:40
合計ジャッジ時間 6,046 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
57,344 KB
testcase_01 AC 38 ms
51,840 KB
testcase_02 AC 37 ms
51,712 KB
testcase_03 AC 37 ms
51,584 KB
testcase_04 AC 39 ms
51,456 KB
testcase_05 AC 37 ms
52,352 KB
testcase_06 AC 38 ms
51,840 KB
testcase_07 AC 39 ms
51,584 KB
testcase_08 AC 40 ms
51,712 KB
testcase_09 AC 40 ms
51,840 KB
testcase_10 AC 39 ms
51,840 KB
testcase_11 AC 39 ms
58,112 KB
testcase_12 AC 41 ms
59,264 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 64 ms
85,632 KB
testcase_18 AC 35 ms
51,712 KB
testcase_19 AC 137 ms
89,216 KB
testcase_20 RE -
testcase_21 AC 37 ms
52,096 KB
testcase_22 AC 35 ms
51,456 KB
testcase_23 TLE -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
P = list(map(int,input().split()))

MOD = 10**9+7
K = 1

for p in P:
  K *= p


l = list(str(K))
ans = 0

for k in l:
  ans += int(k)
while len(str(ans)) > 1:
  count = 0
  l = list(str(ans))
  for k in l:
    count += int(k)
  ans = count
print(ans)
0