#include #include #include #include #include #define rep(i,n) for(i=0; i> a #define out(a,b) cout << a << b using namespace std; using lint = long long; int main(void){ int i, j; int n, m; lint k; in(n); in(k); vector a(n); rep(i,n) in(a[i]); sort(a.begin(), a.end()); int cnt=0, ans=0; j=n-1; rep(i,n){ lint min=2*k/a[i]; if(2*k%a[i]) min++; for(; j>=i-1; --j){ if(a[j]=j) break; cnt=n-1-j; ans+=2*cnt; } for(; i