結果

問題 No.1157 Many Quotients easy
ユーザー face4
提出日時 2020-08-12 10:54:11
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 151 bytes
コンパイル時間 781 ms
コンパイル使用メモリ 77,660 KB
最終ジャッジ日時 2025-01-12 21:15:22
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cmath>
using namespace std;

int main(){
    int n;
    cin >> n;
    cout << (int)(sqrt(4*n+1))-1 << endl;
    return 0;
}
0