fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define ll long long
  5. #define int ll
  6. #define all(x) x.begin(),x.end()
  7. #define rall(x) x.rbegin(),x.rend()
  8. #define endl '\n'
  9. #define cendl cout<<endl
  10. #define cyes cout<<"YES"
  11. #define cno cout<<"NO"
  12. #define cin(v) for(ll i=0;i<v.size();i++)cin>>v[i];
  13. #define cin1(v,n) for(ll i=0;i<n;i++)cin>>v[i];
  14. #define cin2(v,n,m) for(ll i=0;i<n;i++) for (int j = 0; j < m; j++) cin>>v[i][j];
  15. #define tryAndCry(v) for(auto x : v){cout<<x<<" ";}cout<<"\n";
  16. #define cout1(v,n) for(ll i=0;i<n;i++)cout<<v[i]<<' '; cendl;
  17. #define cout2(v,n,m) for(ll i=0;i<n;i++,cendl) for (int j = 0; j < m; j++) cout<<v[i][j]<<' ';
  18. #define assign1(v,n,value) for(ll i=0;i<n;i++)v[i]=value;
  19. #define assign2(v,n,m,value) for(ll i=0;i<n;i++) for (int j = 0; j < m; j++) v[i][j]=value;
  20. #define unq(v) v.resize(distance(v.begin(),unique(all(v))));
  21. #define oo LLONG_MAX;
  22. #define InTheNameOfAllah ios_base::sync_with_stdio(0);cin.tie(0);
  23. // check idea if forgot from the sheet
  24. void solve()
  25. {
  26. ll n;
  27. cin>>n;
  28. cout<<(int)sqrt(n);
  29.  
  30. return;
  31. }
  32.  
  33. int32_t main() {
  34. InTheNameOfAllah
  35. //freopen("input.txt", "r", stdin);
  36. //freopen("output.txt", "w", stdout);
  37. ll t=1;
  38. cin>>t;
  39. while(t--){
  40. solve();
  41. cendl;
  42. }
  43. return 0;
  44. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
0