結果
問題 |
No.1700 floor X
|
ユーザー |
![]() |
提出日時 | 2025-07-05 23:36:03 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 554 bytes |
コンパイル時間 | 1,832 ms |
コンパイル使用メモリ | 192,872 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-07-05 23:36:09 |
合計ジャッジ時間 | 5,403 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | AC * 31 RE * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll isqrt(ll n) { ll l = 0, r = n, ans = 0; while (l <= r) { ll m = l + (r - l) / 2; if (m <= n / m) { ans = m; l = m + 1; } else { r = m - 1; } } return ans; } int main() { ios::sync_with_stdio(false);// em them vao nham muc dich chay nhanh hon cin.tie(nullptr); int t; cin >> t; while (t--) { ll n; cin >> n; cout << isqrt(n) << '\n'; } return 0; }