結果
問題 | No.1700 floor X |
ユーザー |
![]() |
提出日時 | 2021-10-15 20:12:03 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 25 ms / 2,000 ms |
コード長 | 488 bytes |
コンパイル時間 | 3,820 ms |
コンパイル使用メモリ | 228,100 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-03 10:41:10 |
合計ジャッジ時間 | 5,917 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 44 |
ソースコード
#include <bits/stdc++.h>using namespace std;#include <atcoder/all>using namespace atcoder;using ll=long long;using Graph=vector<vector<int>>;#define INF 1000000000#define MOD 998244353#define MAX 200000int main(){int T;cin>>T;for(int i=0;i<T;i++){ll N;cin>>N;ll left=0;ll right=1000000001;while(left+1<right){ll x=(left+right)/2;if(x*x<=N){left=x;}else{right=x;}}cout<<left<<'\n';}}