結果

問題 No.1139 Slime Race
ユーザー ttkkggww
提出日時 2020-07-31 21:33:27
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 1,370 ms
コンパイル使用メモリ 168,252 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-02 08:18:21
合計ジャッジ時間 2,972 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using ll = long long;

int main()
{
	int n,d;
	cin >> n >> d;
	vector<int> x(n),v(n);
	for(auto &i:x)cin >> i;
	for(auto &i:v)cin >> i;
	ll sum = 0;
	
	for(auto &i:v)
	{
		sum += i;
	}
	cout << (d+sum-1)/sum<<endl;
}
0