結果

問題 No.933 おまわりさんこいつです
ユーザー Ultimate_Tea_04Ultimate_Tea_04
提出日時 2020-05-01 21:36:50
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 198 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 87,152 KB
実行使用メモリ 266,556 KB
最終ジャッジ日時 2023-08-26 07:20:55
合計ジャッジ時間 7,405 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
75,768 KB
testcase_01 AC 66 ms
71,320 KB
testcase_02 AC 66 ms
71,612 KB
testcase_03 AC 79 ms
71,384 KB
testcase_04 AC 73 ms
71,528 KB
testcase_05 AC 63 ms
71,156 KB
testcase_06 AC 67 ms
71,456 KB
testcase_07 AC 66 ms
71,464 KB
testcase_08 AC 65 ms
71,148 KB
testcase_09 AC 66 ms
71,588 KB
testcase_10 AC 67 ms
71,264 KB
testcase_11 AC 71 ms
76,028 KB
testcase_12 AC 71 ms
76,184 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 94 ms
89,232 KB
testcase_18 AC 65 ms
71,304 KB
testcase_19 AC 172 ms
93,568 KB
testcase_20 RE -
testcase_21 AC 66 ms
71,384 KB
testcase_22 AC 65 ms
71,496 KB
testcase_23 TLE -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = input().split()
x = []
for i in s:
    x.append(int(i))
ans = 1
for i in x:
    ans *= i
while ans>9:
    t = 0
    for i in str(ans):
        t += int(i)
    ans = t
print(ans)
0