結果
問題 |
No.300 平方数
|
ユーザー |
![]() |
提出日時 | 2015-11-13 23:09:40 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 258 bytes |
コンパイル時間 | 508 ms |
コンパイル使用メモリ | 59,452 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-09-13 15:06:25 |
合計ジャッジ時間 | 3,334 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 4 TLE * 1 -- * 23 |
ソースコード
#include<iostream> #include<cmath> int main() { double x; std::cin >> x; long long y = 1; while (true) { double z = sqrt(x * y); if (z == static_cast<int>(z)) { std::cout << static_cast<int>(y) << std::endl; break; } y++; } return 0; }