結果
| 問題 |
No.1808 Fullgold Alchemist
|
| コンテスト | |
| ユーザー |
hiro71687k
|
| 提出日時 | 2023-08-06 06:15:48 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 2,000 ms |
| コード長 | 443 bytes |
| コンパイル時間 | 3,644 ms |
| コンパイル使用メモリ | 250,704 KB |
| 最終ジャッジ日時 | 2025-02-15 23:41:26 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using namespace std;
using ll=long long;
using ld=long double;
ld pie=3.141592653589793;
ll mod=1000000007;
ll inf=10099999999999990;
int main(){
ll n,m;
cin >> n >> m;
vector<ll>a(n);
ll ans=inf;
ll sum=0;
for (ll i = 0; i < n; i++)
{
cin >> a[i];
sum+=a[i];
ans=min(ans,sum/(i+1));
}
cout << ans/m << endl;
}
hiro71687k