結果
| 問題 |
No.944 煎っぞ!
|
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2024-07-02 20:44:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 320 bytes |
| コンパイル時間 | 265 ms |
| コンパイル使用メモリ | 82,028 KB |
| 実行使用メモリ | 107,080 KB |
| 最終ジャッジ日時 | 2024-07-02 20:44:24 |
| 合計ジャッジ時間 | 4,310 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 WA * 19 |
ソースコード
from itertools import accumulate
N = int(input())
A = list(map(int, input().split()))
acc = list(accumulate(A))
tot = sum(A)
st = set(acc)
for b in acc: # 作られる数列の要素
for x in range(b+b, tot, b):
if x not in st:
break
else:
print(tot // b)
exit()
print(1)
norioc