結果
| 問題 | No.1700 floor X |
| コンテスト | |
| ユーザー |
eve__fuyuki
|
| 提出日時 | 2024-04-13 13:12:15 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 444 bytes |
| 記録 | |
| コンパイル時間 | 1,123 ms |
| コンパイル使用メモリ | 211,308 KB |
| 実行使用メモリ | 11,968 KB |
| 最終ジャッジ日時 | 2026-07-04 11:35:07 |
| 合計ジャッジ時間 | 3,090 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 44 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
void fast_io() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
int main() {
fast_io();
int t;
cin >> t;
for (; t--;) {
long long n;
cin >> n;
long long ans = sqrtl(n);
while ((ans + 1) * (ans + 1) <= n) {
ans++;
}
while (ans * ans > n) {
ans--;
}
cout << ans << "\n";
}
}
eve__fuyuki