結果
問題 | No.1139 Slime Race |
ユーザー | morutole |
提出日時 | 2020-08-02 11:27:07 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 108 ms / 2,000 ms |
コード長 | 397 bytes |
コンパイル時間 | 3,243 ms |
コンパイル使用メモリ | 191,180 KB |
最終ジャッジ日時 | 2025-01-12 13:12:56 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(i = 0;i < n;++i) #define all(v) v.begin(), v.end() using ll = long long; int main() { ll i,j; ll n,d; cin >> n >> d; ll sum = 0; for(i = 0;i < n;++i){ ll x; cin >> x; } rep(i,n){ ll v; cin >> v; sum += v; } cout << (d-1)/sum+1 << endl; return 0; }