結果
問題 |
No.508 超ゆとり教育
|
ユーザー |
![]() |
提出日時 | 2017-05-04 01:16:04 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 222 bytes |
コンパイル時間 | 469 ms |
コンパイル使用メモリ | 58,716 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 07:12:48 |
合計ジャッジ時間 | 1,073 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 7 |
ソースコード
#include <iostream> #include <cmath> using namespace std; typedef long long LL; int main(int argc, char *argv[]) { LL n; cin >> n; long double r = sqrt(n / 3 + 1); LL ans = (LL)r; cout << ans << endl; return 0; }