結果

問題 No.508 超ゆとり教育
ユーザー eiya5498513eiya5498513
提出日時 2017-04-27 23:51:21
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 668 bytes
コンパイル時間 901 ms
コンパイル使用メモリ 102,240 KB
実行使用メモリ 4,356 KB
最終ジャッジ日時 2023-10-11 16:42:37
合計ジャッジ時間 2,496 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#if 1
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <queue>
#include <stack>
#include <array>
#include <deque>
#include <algorithm>
#include <utility>
#include <cstdint>
#include <functional>
#include <iomanip>
#include <numeric>
#include <assert.h>
#include <complex>
int main() {
	int64_t n;
	std::string s;
	std::getline(std::cin, s);
	assert(std::all_of(s.begin(), s.end(), [](char c) {return '0' <= c && c <= '9'; }));
	n = std::stoll(s);
	std::cout
		<< std::fixed << std::setprecision(9)
		<< (floor)(sqrt(n*1.0 / 3)+1) << std::endl;
}
#endif
0