結果

問題 No.1139 Slime Race
ユーザー kyo1
提出日時 2020-08-02 02:38:20
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 373 bytes
コンパイル時間 2,473 ms
コンパイル使用メモリ 193,048 KB
最終ジャッジ日時 2025-01-12 13:04:44
ジャッジサーバーID
(参考情報)
judge3 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int N, D;
  cin >> N >> D;
  vector<int> X(N), V(N);
  for (int i = 0; i < N; i++) {
    cin >> X[i];
  }
  for (int i = 0; i < N; i++) {
    cin >> V[i];
  }
  int tot = 0;
  for (int v : V) {
    tot += v;
  }
  cout << (D + tot - 1) / tot << '\n';
  return 0;
}
0