結果
問題 |
No.1700 floor X
|
ユーザー |
|
提出日時 | 2025-09-15 07:09:59 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 26 ms / 2,000 ms |
コード長 | 244 bytes |
コンパイル時間 | 1,069 ms |
コンパイル使用メモリ | 97,556 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-09-15 07:10:03 |
合計ジャッジ時間 | 3,776 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 44 |
ソースコード
#include <iostream> #include <cmath> using namespace std; int main() { int t; cin >> t; while(t--) { long n; cin >> n; long sq = sqrt(n); while((sq+1)*(sq+1)<=n)sq++; while(sq*sq>n)sq--; cout << sq << "\n"; } }