結果

問題 No.933 おまわりさんこいつです
ユーザー beetbeet
提出日時 2019-11-29 21:44:15
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 196 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 82,480 KB
実行使用メモリ 268,328 KB
最終ジャッジ日時 2024-04-30 23:12:30
合計ジャッジ時間 5,981 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
57,824 KB
testcase_01 AC 38 ms
53,288 KB
testcase_02 AC 37 ms
51,884 KB
testcase_03 AC 37 ms
52,952 KB
testcase_04 AC 37 ms
52,740 KB
testcase_05 AC 37 ms
52,520 KB
testcase_06 AC 37 ms
52,204 KB
testcase_07 AC 38 ms
52,176 KB
testcase_08 AC 38 ms
52,080 KB
testcase_09 AC 39 ms
53,668 KB
testcase_10 AC 37 ms
52,616 KB
testcase_11 AC 42 ms
58,420 KB
testcase_12 AC 42 ms
59,608 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 70 ms
85,984 KB
testcase_18 AC 38 ms
51,840 KB
testcase_19 AC 151 ms
89,344 KB
testcase_20 RE -
testcase_21 AC 39 ms
51,968 KB
testcase_22 AC 39 ms
51,712 KB
testcase_23 TLE -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ps = list(map(int, input().split()))
ans = 1
for p in ps:
    ans *= p

while ans >= 10:
    s = str(ans)
    ans = 0
    for c in s:
        ans += ord(c) - ord('0')

print(ans)
0