結果
問題 | No.933 おまわりさんこいつです |
ユーザー |
![]() |
提出日時 | 2019-11-29 23:32:27 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 1,149 ms / 2,000 ms |
コード長 | 331 bytes |
コンパイル時間 | 84 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 22,736 KB |
最終ジャッジ日時 | 2024-11-20 23:54:36 |
合計ジャッジ時間 | 4,797 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
N=int(input()) P=list(map(int,input().split())) A=P[0] while len(str(A))>1: Q=0 for q in str(A): Q+=int(q) A=Q for p in P[1:]: B=0 for q in str(p): B+=A*int(q) A=B while len(str(A))>1: Q=0 for q in str(A): Q+=int(q) A=Q print(A)