結果
問題 |
No.1139 Slime Race
|
ユーザー |
|
提出日時 | 2020-08-01 15:50:08 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 90 ms / 2,000 ms |
コード長 | 336 bytes |
コンパイル時間 | 2,918 ms |
コンパイル使用メモリ | 191,176 KB |
最終ジャッジ日時 | 2025-01-12 12:41:24 |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { long long n, d; cin >> n >> d; for(int i = 0; i < n; ++i) { int x; cin >> x; } long long sum = 0; for(int i = 0; i < n; ++i) { long long v; cin >> v; sum += v; } cout << (d + sum -1) / sum << endl; }