結果

問題 No.508 超ゆとり教育
コンテスト
ユーザー eiya5498513
提出日時 2017-04-27 23:51:21
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 668 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 724 ms
コンパイル使用メモリ 118,012 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-04 06:05:47
合計ジャッジ時間 1,827 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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