#include #include #include using namespace std; typedef long long ll; bool func(pair a, pair b){ if(a.first * b.second == b.first * a.second){ return a.second < b.second; } if(a.first * b.second < b.first * a.second){ return true; } else { return false; } } int main(){ int N; ll V; cin >> N >> V; vector C(N); for(int i=0;i> C[i]; vector< pair > S(N); ll s = 0; for(int i=0;i