結果

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

ソースコード

diff #

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

int main(){
    int N, D;
    cin >> N >> D;
    vector<int64_t> X(N), V(N);
    for(int i=0; i<N; i++) cin >> X[i];
    for(int i=0; i<N; i++) cin >> V[i];
    auto S = accumulate(V.begin(), V.end(), 0LL);
    cout << (D+S-1)/S << endl;
    return 0;
}
0