結果
問題 | No.1139 Slime Race |
ユーザー | erbowl |
提出日時 | 2021-01-30 06:13:14 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 80 ms / 2,000 ms |
コード長 | 379 bytes |
コンパイル時間 | 1,678 ms |
コンパイル使用メモリ | 193,148 KB |
最終ジャッジ日時 | 2025-01-18 09:49:42 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
typedef long long ll; typedef long double ld; #include <bits/stdc++.h> using namespace std; int main() { ll n,d; std::cin >> n>>d; ll sum = 0; for (int i = 0; i < n; i++) { ll t; std::cin >> t; } for (int i = 0; i < n; i++) { ll v; std::cin >> v; sum += v; } std::cout << (d+sum-1)/sum << std::endl; }