結果

問題 No.1139 Slime Race
ユーザー Geckoちゃん
提出日時 2020-08-17 09:53:09
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 572 bytes
コンパイル時間 762 ms
コンパイル使用メモリ 70,272 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-10-11 10:51:49
合計ジャッジ時間 5,207 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 1 WA * 1 RE * 3 TLE * 1 -- * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
#include <set>
#include <string>
using namespace std;
using ll = long long;

int main() {
        ll N,D;
        cin >> N; cin >> D;
        ll xs[N] = {};
        ll vs[N] = {};

        ll total_v = 0;
        for(ll i=1;i<=N;i++) 
          cin >> xs[i];
        for(ll i=1;i<=N;i++) { 
          cin >> vs[i]; 
          total_v += vs[i];
        }
  

        double a = double(D)/total_v;
        if(a == ll(a)) {
          cout << ll(a) << endl;
        } else {
          cout << ll(a)+1 << endl;
        }
        return 0;
}
0