結果

問題 No.2420 Simple Problem
ユーザー 👑 Nafmo2Nafmo2
提出日時 2023-06-22 00:21:34
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 276 bytes
コンパイル時間 10,114 ms
コンパイル使用メモリ 373,084 KB
実行使用メモリ 4,476 KB
最終ジャッジ日時 2023-09-11 19:25:30
合計ジャッジ時間 74,749 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,356 KB
testcase_01 AC 871 ms
4,476 KB
testcase_02 AC 11 ms
4,356 KB
testcase_03 AC 320 ms
4,356 KB
testcase_04 AC 1,704 ms
4,356 KB
testcase_05 AC 1,090 ms
4,356 KB
testcase_06 TLE -
testcase_07 TLE -
testcase_08 TLE -
testcase_09 TLE -
testcase_10 TLE -
testcase_11 TLE -
testcase_12 TLE -
testcase_13 TLE -
testcase_14 TLE -
testcase_15 TLE -
testcase_16 TLE -
testcase_17 TLE -
testcase_18 TLE -
testcase_19 TLE -
testcase_20 TLE -
testcase_21 TLE -
testcase_22 TLE -
testcase_23 TLE -
testcase_24 TLE -
testcase_25 TLE -
testcase_26 AC 2 ms
4,352 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 2 ms
4,356 KB
testcase_33 AC 852 ms
4,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_dec_float.hpp>
using namespace std;
int main(void) {
  int N;
  cin >> N;
  for(int i = 0; i < N; i++){
	  boost::multiprecision::cpp_dec_float_50 A,B;
	  cin >> A >> B;
	  cout<<floor(sqrt(A)+sqrt(B)+1)<<endl;
  }
}
0