結果

問題 No.2420 Simple Problem
ユーザー dyktr_06dyktr_06
提出日時 2023-06-20 20:13:24
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 2,825 ms
コンパイル使用メモリ 198,088 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-10 20:26:36
合計ジャッジ時間 18,329 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 191 ms
4,376 KB
testcase_02 AC 3 ms
4,376 KB
testcase_03 AC 72 ms
4,380 KB
testcase_04 AC 370 ms
4,376 KB
testcase_05 AC 237 ms
4,380 KB
testcase_06 AC 454 ms
4,380 KB
testcase_07 AC 454 ms
4,380 KB
testcase_08 AC 460 ms
4,376 KB
testcase_09 AC 471 ms
4,376 KB
testcase_10 AC 465 ms
4,376 KB
testcase_11 AC 479 ms
4,380 KB
testcase_12 AC 474 ms
4,376 KB
testcase_13 AC 473 ms
4,376 KB
testcase_14 AC 466 ms
4,380 KB
testcase_15 AC 471 ms
4,380 KB
testcase_16 AC 461 ms
4,376 KB
testcase_17 AC 471 ms
4,376 KB
testcase_18 AC 463 ms
4,380 KB
testcase_19 AC 474 ms
4,380 KB
testcase_20 AC 460 ms
4,376 KB
testcase_21 AC 475 ms
4,376 KB
testcase_22 AC 466 ms
4,376 KB
testcase_23 AC 464 ms
4,376 KB
testcase_24 AC 462 ms
4,376 KB
testcase_25 AC 465 ms
4,376 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 2 ms
4,376 KB
testcase_33 AC 184 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

const long double EPS = 1e-16;

int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int n; cin >> n;

    while(n--){
        long double a, b; cin >> a >> b;
        cout << (int) ceil(sqrtl(a) + sqrt(b) + EPS) << endl;
    }
}
0