結果

問題 No.933 おまわりさんこいつです
ユーザー Ultimate_Tea_04Ultimate_Tea_04
提出日時 2020-05-01 22:06:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 356 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 26,236 KB
最終ジャッジ日時 2023-08-26 13:51:45
合計ジャッジ時間 6,041 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,228 KB
testcase_01 AC 16 ms
7,784 KB
testcase_02 AC 16 ms
7,860 KB
testcase_03 AC 16 ms
7,848 KB
testcase_04 AC 16 ms
7,768 KB
testcase_05 AC 16 ms
7,852 KB
testcase_06 AC 15 ms
7,880 KB
testcase_07 AC 16 ms
7,988 KB
testcase_08 AC 16 ms
7,772 KB
testcase_09 AC 16 ms
7,908 KB
testcase_10 AC 16 ms
7,848 KB
testcase_11 AC 16 ms
7,912 KB
testcase_12 AC 17 ms
8,216 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 65 ms
17,080 KB
testcase_18 AC 15 ms
7,824 KB
testcase_19 AC 149 ms
19,652 KB
testcase_20 RE -
testcase_21 AC 16 ms
7,856 KB
testcase_22 AC 16 ms
7,816 KB
testcase_23 TLE -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

def s(n):
    x = 0
    z = str(n)
    y = len(z)
    for i in range(y):
        x += n//(10**(y-i-1))
        n -= (n//(10**(y-i-1)))*10**(y-i-1)
    return(int(x))  
    
    
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:
    ans = sum(list(map(int, str(ans))))
print(ans)
    
0