結果
問題 | No.1139 Slime Race |
ユーザー |
|
提出日時 | 2020-07-31 21:34:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 74 ms / 2,000 ms |
コード長 | 261 bytes |
コンパイル時間 | 1,473 ms |
コンパイル使用メモリ | 168,880 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-02 08:18:28 |
合計ジャッジ時間 | 3,082 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include<bits/stdc++.h>using namespace std;using ll = long long;int main(){ll n,d;cin >> n >> d;vector<int> x(n),v(n);for(auto &i:x)cin >> i;for(auto &i:v)cin >> i;ll sum = 0;for(auto &i:v){sum += i;}cout << (d+sum-1)/sum<<endl;}