結果

問題 No.933 おまわりさんこいつです
ユーザー 👑 emthrmemthrm
提出日時 2019-11-29 21:48:54
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 203 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 82,360 KB
実行使用メモリ 82,956 KB
最終ジャッジ日時 2024-04-30 23:19:52
合計ジャッジ時間 5,402 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
59,908 KB
testcase_01 AC 36 ms
52,188 KB
testcase_02 AC 35 ms
52,876 KB
testcase_03 AC 33 ms
51,836 KB
testcase_04 AC 35 ms
51,756 KB
testcase_05 AC 34 ms
51,964 KB
testcase_06 AC 35 ms
52,712 KB
testcase_07 AC 34 ms
52,400 KB
testcase_08 AC 33 ms
53,256 KB
testcase_09 AC 34 ms
52,964 KB
testcase_10 AC 33 ms
53,244 KB
testcase_11 AC 41 ms
59,516 KB
testcase_12 AC 50 ms
61,112 KB
testcase_13 AC 366 ms
75,432 KB
testcase_14 AC 725 ms
75,684 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())
a = [int(i) for i in input().split()]
ans = 1
for e in a:
    ans *= e
while ans >= 10:
    tmp = 0
    while ans > 0:
        tmp += ans % 10
        ans //= 10
    ans = tmp
print(ans)
0