結果
| 問題 |
No.944 煎っぞ!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-25 09:35:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 243 bytes |
| コンパイル時間 | 189 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 26,764 KB |
| 最終ジャッジ日時 | 2024-09-22 02:13:13 |
| 合計ジャッジ時間 | 8,755 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / 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 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