結果

問題 No.1329 Square Sqsq
ユーザー くれちーくれちー
提出日時 2021-01-08 21:51:06
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 181 ms / 2,000 ms
コード長 284 bytes
コンパイル時間 10,671 ms
コンパイル使用メモリ 407,568 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-10 09:17:48
合計ジャッジ時間 13,998 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,352 KB
testcase_01 AC 1 ms
4,356 KB
testcase_02 AC 2 ms
4,356 KB
testcase_03 AC 177 ms
4,360 KB
testcase_04 AC 175 ms
4,352 KB
testcase_05 AC 181 ms
4,356 KB
testcase_06 AC 173 ms
4,352 KB
testcase_07 AC 177 ms
4,352 KB
testcase_08 AC 174 ms
4,356 KB
testcase_09 AC 173 ms
4,352 KB
testcase_10 AC 177 ms
4,352 KB
testcase_11 AC 178 ms
4,356 KB
testcase_12 AC 176 ms
4,356 KB
testcase_13 AC 137 ms
4,352 KB
testcase_14 AC 16 ms
4,352 KB
testcase_15 AC 2 ms
4,360 KB
testcase_16 AC 2 ms
4,356 KB
testcase_17 AC 10 ms
4,356 KB
testcase_18 AC 49 ms
4,360 KB
testcase_19 AC 37 ms
4,356 KB
testcase_20 AC 7 ms
4,352 KB
testcase_21 AC 4 ms
4,360 KB
testcase_22 AC 143 ms
4,356 KB
testcase_23 AC 28 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC target("avx2,bmi,bmi2")
#pragma GCC optimize("O3")

#include <boost/multiprecision/cpp_int.hpp>
#include <iostream>

using boost::multiprecision::cpp_int;

int main() {
  cpp_int n;
  std::cin >> n;

  size_t ans = sqrt(n).str().size();
  std::cout << ans << std::endl;
}
0