結果

問題 No.1139 Slime Race
ユーザー risujirohrisujiroh
提出日時 2020-07-31 21:43:26
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 412 bytes
コンパイル時間 1,989 ms
コンパイル使用メモリ 194,432 KB
最終ジャッジ日時 2025-01-12 09:38:52
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

#ifdef LOCAL
#include "debug.h"
#else
#define DEBUG(...)
#endif

int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int n, d;
  cin >> n >> d;
  vector<int> x(n);
  for (auto&& e : x) cin >> e;
  vector<int> v(n);
  for (auto&& e : v) cin >> e;
  using ll = long long;
  ll s = accumulate(begin(v), end(v), 0LL);
  cout << (d + s - 1) / s << '\n';
}
0