結果
問題 | No.1700 floor X |
ユーザー |
![]() |
提出日時 | 2021-10-08 22:26:32 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 342 bytes |
コンパイル時間 | 4,986 ms |
コンパイル使用メモリ | 190,912 KB |
最終ジャッジ日時 | 2025-01-24 22:36:09 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 44 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main() { int t; cin >> t; while (t--) { long long n; cin >> n; long long ok = 0, ng = 1e10; while (ng - ok > 1) { long long k = (ok + ng) / 2; if (k*k <= n) ok = k; else ng = k; } cout << ok << endl; } }