#include #include #include #include #include #include #include #include using namespace std; int Tokyo_fee[100]; int Kyoto_fee[100]; int main() { int n =0,d=0; cin>>n>>d; long Tokyo_max =0; long Kyoto_max =0; int tmp=0; for(int i=0; i>tmp; Tokyo_fee[i] =tmp; cin>>tmp; Kyoto_fee[i] =tmp; } Tokyo_max = Tokyo_fee[0]; Kyoto_max = Kyoto_fee[0]-d; long tmpp=0; long tmppp=0; int i=0; for( i=1; i