結果

問題 No.1139 Slime Race
ユーザー Geckoちゃん
提出日時 2020-08-17 09:55:03
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 572 bytes
コンパイル時間 2,207 ms
コンパイル使用メモリ 100,600 KB
最終ジャッジ日時 2025-01-13 02:13:41
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 1 RE * 8 TLE * 2
権限があれば一括ダウンロードができます

ソースコード

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