結果
問題 | No.1139 Slime Race |
ユーザー |
|
提出日時 | 2020-07-31 21:23:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 29 ms / 2,000 ms |
コード長 | 367 bytes |
コンパイル時間 | 1,696 ms |
コンパイル使用メモリ | 165,632 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-02 08:13:25 |
合計ジャッジ時間 | 2,921 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h>#define MOD 1000000007LLusing namespace std;typedef long long ll;typedef pair<int,int> P;int n;ll d;ll x[100005],v[100005];int main(void){scanf("%d%lld",&n,&d);ll sum=0;for(int i=0;i<n;i++){scanf("%lld",&x[i]);}for(int i=0;i<n;i++){scanf("%lld",&v[i]);sum+=v[i];}printf("%lld\n",(d+sum-1LL)/sum);return 0;}