結果

問題 No.933 おまわりさんこいつです
ユーザー yuly3
提出日時 2020-01-07 09:39:42
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 304 bytes
コンパイル時間 199 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 51,072 KB
最終ジャッジ日時 2024-11-23 00:33:35
合計ジャッジ時間 15,481 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 14 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np


def solve():
    N = int(input())
    P = np.array(input().split(), dtype='int64')

    K = list(str(np.prod(P)))
    while len(K) != 1:
        num = 0
        for k in K:
            num += int(k)
        K = list(str(num))
    print(K[0])


if __name__ == '__main__':
    solve()
0