結果
| 問題 | No.1139 Slime Race |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-31 22:42:08 |
| 言語 | C++17(clang) (clang++ 21.1.8 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 2,000 ms |
| コード長 | 371 bytes |
| 記録 | |
| コンパイル時間 | 551 ms |
| コンパイル使用メモリ | 136,064 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2026-03-23 14:41:50 |
| 合計ジャッジ時間 | 2,867 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_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;
}