結果
問題 |
No.1700 floor X
|
ユーザー |
![]() |
提出日時 | 2025-07-08 23:47:16 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 12 ms / 2,000 ms |
コード長 | 527 bytes |
コンパイル時間 | 564 ms |
コンパイル使用メモリ | 59,528 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-07-08 23:47:20 |
合計ジャッジ時間 | 2,888 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 44 |
ソースコード
#include<iostream> using namespace std; unsigned long long xuli2(unsigned long long n) { unsigned long long l=1,r=n,t=0; while(l<=r) { unsigned long long g=(l+r)/2; if(g<=n/g) { t=g; l=g+1; } else { r=g-1; } } return t; } int main() { ios::sync_with_stdio(false);cout.tie(0);cin.tie(0); int t;cin>>t; while(t--) { unsigned long long n;cin>>n; cout<<xuli2(n)<<'\n'; } return 0; }