結果

問題 No.933 おまわりさんこいつです
ユーザー kagasan
提出日時 2020-04-19 20:53:35
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 370 ms / 2,000 ms
コード長 278 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 20,484 KB
最終ジャッジ日時 2024-10-06 08:03:21
合計ジャッジ時間 3,085 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!

def ketawa(x):
    while x > 9:
        y = 0
        while x > 0:
            y += (x % 10)
            x = x // 10
        x = y
    return x

N = int(input())
X = 1
P = input().split()
for i in P:
    X = ketawa(X * ketawa(int(i)))
print(X)
0