結果
問題 | No.1139 Slime Race |
ユーザー |
|
提出日時 | 2020-07-31 22:42:08 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 75 ms / 2,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 677 ms |
コンパイル使用メモリ | 124,160 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-02 08:23:33 |
合計ジャッジ時間 | 2,621 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <iostream>#include <vector>#include <numeric>using namespace std;int main() {int n,d;cin >> n >> d;vector x(n,0);vector v(n,0);for (int i=0; i<n; i++) cin >> x[i];for (int i=0; i<n; i++) cin >> v[i];long sum = accumulate(v.begin(), v.end(), 0LL);cerr<<"sum : " << sum << endl;cout << (d+sum-1)/sum << endl;}