/* -*- coding: utf-8 -*- * * 1700.cc: No.1700 floor X - yukicoder */ #include using namespace std; /* constant */ const int MAX_R = 1000000000; /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ /* main */ int main() { int tn; scanf("%d", &tn); while (tn--) { ll n; scanf("%lld", &n); int r0 = 1, r1 = MAX_R + 1; while (r0 + 1 < r1) { int r = (r0 + r1) / 2; if ((ll)r * r <= n) r0 = r; else r1 = r; } printf("%d\n", r0); } return 0; }