結果

問題 No.1139 Slime Race
ユーザー kpinkcatkpinkcat
提出日時 2023-08-27 13:22:31
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 453 bytes
コンパイル時間 909 ms
コンパイル使用メモリ 104,308 KB
実行使用メモリ 4,732 KB
最終ジャッジ日時 2023-08-27 13:22:36
合計ジャッジ時間 4,184 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 51 ms
4,592 KB
testcase_11 AC 45 ms
4,608 KB
testcase_12 AC 66 ms
4,620 KB
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 51 ms
4,732 KB
testcase_15 AC 61 ms
4,376 KB
testcase_16 AC 64 ms
4,576 KB
testcase_17 AC 52 ms
4,696 KB
testcase_18 AC 44 ms
4,380 KB
testcase_19 AC 29 ms
4,380 KB
testcase_20 AC 28 ms
4,376 KB
testcase_21 AC 41 ms
4,376 KB
testcase_22 AC 52 ms
4,572 KB
testcase_23 AC 72 ms
4,648 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<map>
#include<vector>
#include <algorithm>
#include<math.h>
#include <iomanip>
#include<set>
#include <numeric>
#include<string>
using namespace std;


int main()
{
    int n, d, sumv=0;
    cin >> n >> d;
    vector<long long> x(n), v(n);
    for (int i = 0; i < n; i++) cin >> x[i];
    for (int i = 0; i < n; i++){
        cin >> v[i];
        sumv += v[i];
    }
    cout << ((d%sumv) ? (d/sumv + 1) : d/sumv) << endl;
}
0