/* -*- coding: utf-8 -*- * * 1139.cc: No.1139 Slime Race - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ const int MAX_N = 100000; /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ /* main */ int main() { int n, d; scanf("%d%d", &n, &d); for (int i = 0; i < n; i++) { int x; scanf("%d", &x); } ll vsum = 0; for (int i = 0; i < n; i++) { int v; scanf("%d", &v); vsum += v; } //printf("vsum=%lld\n", vsum); printf("%lld\n", (d + vsum - 1) / vsum); return 0; }