結果

問題 No.1139 Slime Race
ユーザー Geckoちゃん
提出日時 2020-08-17 09:51:37
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 579 bytes
コンパイル時間 541 ms
コンパイル使用メモリ 71,372 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-11 10:51:31
合計ジャッジ時間 3,027 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

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

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