結果

問題 No.933 おまわりさんこいつです
ユーザー rkyiolklorkyiolklo
提出日時 2020-05-03 14:50:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 214 bytes
コンパイル時間 592 ms
コンパイル使用メモリ 10,556 KB
実行使用メモリ 13,644 KB
最終ジャッジ日時 2023-09-02 21:41:18
合計ジャッジ時間 5,607 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
12,188 KB
testcase_01 AC 17 ms
7,856 KB
testcase_02 AC 17 ms
7,828 KB
testcase_03 AC 16 ms
7,752 KB
testcase_04 AC 17 ms
7,864 KB
testcase_05 AC 17 ms
7,852 KB
testcase_06 AC 16 ms
7,748 KB
testcase_07 AC 16 ms
7,964 KB
testcase_08 AC 17 ms
7,816 KB
testcase_09 AC 16 ms
7,860 KB
testcase_10 AC 17 ms
7,744 KB
testcase_11 AC 20 ms
7,796 KB
testcase_12 AC 30 ms
7,832 KB
testcase_13 AC 325 ms
8,292 KB
testcase_14 AC 653 ms
8,672 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())
P=list(map(int,input().split()))
cnt=1
for i in range(n):
    cnt*=P[i]

temp=cnt
ans1=0
while temp>=10:
    ans2=0
    while temp>0:
        ans2+=temp%10
        temp//=10
    temp=ans2
print(temp)
0