結果
問題 |
No.508 超ゆとり教育
|
ユーザー |
![]() |
提出日時 | 2017-04-28 22:35:46 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 240 bytes |
コンパイル時間 | 441 ms |
コンパイル使用メモリ | 58,824 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 18:08:16 |
合計ジャッジ時間 | 1,160 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 6 WA * 1 |
ソースコード
#include <iostream> #include <cmath> #ifndef M_PI #define M_PI 3.14 #endif int main(void){ using namespace std; int n; cin >> n; cout << static_cast<int>(sqrt(n / M_PI)) << endl; return 0; } // n = r * r * pi // r = sqrt(n / pi)