結果
| 問題 | No.933 おまわりさんこいつです | 
| コンテスト | |
| ユーザー |  kagasan | 
| 提出日時 | 2020-04-19 20:25:19 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 270 bytes | 
| コンパイル時間 | 91 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 18,000 KB | 
| 最終ジャッジ日時 | 2024-10-06 06:12:47 | 
| 合計ジャッジ時間 | 5,977 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 TLE * 1 -- * 8 | 
ソースコード
# 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 = X * int(i)
print(ketawa(X))
            
            
            
        