結果
問題 |
No.944 煎っぞ!
|
ユーザー |
|
提出日時 | 2020-12-25 09:32:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 263 bytes |
コンパイル時間 | 174 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 26,752 KB |
最終ジャッジ日時 | 2024-09-22 02:10:13 |
合計ジャッジ時間 | 8,964 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 34 |
ソースコード
n=int(input()) l=list(map(int,input().split())) t=sum(l) m=0 for i in range(1,n+1): m=sum(l[:i]) if t%m>0: continue print(m,sum(l)//m) b=[] c=0 for j in range(n): b+=[l[j]] if sum(b)==m: c+=1; b=[] elif sum(b)>m: break if c*m==sum(l): print(c); break