結果

問題 No.933 おまわりさんこいつです
コンテスト
ユーザー kagasan
提出日時 2020-04-19 20:53:35
言語 Python3
(3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 238 ms / 2,000 ms
+ 366µs
コード長 278 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 60 ms
コンパイル使用メモリ 15,104 KB
実行使用メモリ 20,668 KB
最終ジャッジ日時 2026-10-13 04:15:36
合計ジャッジ時間 3,162 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

# 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