結果

問題 No.933 おまわりさんこいつです
ユーザー sho_00sho_00
提出日時 2020-04-08 15:06:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 214 bytes
コンパイル時間 659 ms
コンパイル使用メモリ 10,648 KB
実行使用メモリ 25,932 KB
最終ジャッジ日時 2023-09-25 16:17:45
合計ジャッジ時間 5,888 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,200 KB
testcase_01 AC 15 ms
7,740 KB
testcase_02 AC 15 ms
7,856 KB
testcase_03 AC 15 ms
7,924 KB
testcase_04 AC 16 ms
7,756 KB
testcase_05 AC 16 ms
7,788 KB
testcase_06 AC 16 ms
7,760 KB
testcase_07 AC 15 ms
7,740 KB
testcase_08 AC 15 ms
7,848 KB
testcase_09 AC 16 ms
7,736 KB
testcase_10 AC 16 ms
7,868 KB
testcase_11 AC 16 ms
7,792 KB
testcase_12 AC 17 ms
7,864 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 56 ms
17,116 KB
testcase_18 AC 16 ms
7,864 KB
testcase_19 AC 136 ms
19,524 KB
testcase_20 RE -
testcase_21 AC 15 ms
7,860 KB
testcase_22 AC 15 ms
7,848 KB
testcase_23 TLE -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
v=1
a=list(map(int,input().split()))
for i in range(n):
  v*=a[i]
while True:
  v_s=str(v)
  tmp=0
  for i in range(len(v_s)):
    tmp+=int(v_s[i])
  if tmp<10:
    break
  else:
    v=tmp
print(tmp)
0