結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
|
提出日時 | 2025-03-01 20:33:12 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 231 bytes |
コンパイル時間 | 499 ms |
コンパイル使用メモリ | 82,348 KB |
実行使用メモリ | 89,516 KB |
最終ジャッジ日時 | 2025-03-01 20:33:20 |
合計ジャッジ時間 | 6,824 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 TLE * 1 -- * 1 |
ソースコード
import sys sys.set_int_max_str_digits(0) def d(x): res=0 for i in range(len(x)): res+=int(x[i]) return res n=int(input()) x=list(map(int,input().split())) y=1 for k in x: y*=k y=str(y) while len(y)!=1: y=str(d(y)) print(y)