/* [NWERC'07] CONTAINERS by: Jan Kuipers */ using namespace std; #include #include typedef long long LL; const LL dx = 1000000; int main () { int runs; cin>>runs; while (runs--) { LL N; cin>>N; N=(N+4)/5; LL approx=(int)sqrt(2.2*N); LL bestA=1LL<<60, bestx=-1, besty=-1; for (LL x=approx-dx >? 1; x