結果
| 問題 | No.1139 Slime Race |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-31 22:42:08 |
| 言語 | C++17(clang) (clang++ 22.1.2 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| + 627µs | |
| コード長 | 371 bytes |
| 記録 | |
| コンパイル時間 | 1,026 ms |
| コンパイル使用メモリ | 136,576 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-03 21:56:57 |
| 合計ジャッジ時間 | 2,309 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}