結果

問題 No.933 おまわりさんこいつです
ユーザー tails1434
提出日時 2019-12-23 21:40:20
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 297 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 81,664 KB
実行使用メモリ 265,172 KB
最終ジャッジ日時 2024-09-19 00:52:33
合計ジャッジ時間 6,119 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 18 RE * 5 TLE * 1 -- * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    P = list(map(int, input().split()))
    A = 1
    for p in P:
        A *= p

    ans = str(A)
    while len(ans) > 1:
        tmp = 0
        for a in ans:
            tmp += int(a)
        ans = str(tmp)

    print(ans)

if __name__ == "__main__":
    main()
0