結果

問題 No.508 超ゆとり教育
ユーザー tadanoningen
提出日時 2021-04-12 03:22:24
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 1,971 ms
コンパイル使用メモリ 192,700 KB
最終ジャッジ日時 2025-01-20 16:15:33
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>

using namespace std;
using ll = long long;

int main(){
    double n;
    cin >> n;
    
    double ans = sqrt(n / 3);
    ans = floor(ans);
    if(ans == 0) ans++;
    cout << ans << endl;
    return 0;

}
0