結果

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

テストケース

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

ソースコード

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 << (int64_t)(sqrt(n*1.0 / 3) +1) << std::endl;
}
#endif
0