結果

問題 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
コンパイル時間 1,913 ms
コンパイル使用メモリ 199,560 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-28 11:31:54
合計ジャッジ時間 18,331 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 187 ms
6,940 KB
testcase_02 AC 4 ms
6,940 KB
testcase_03 AC 72 ms
6,940 KB
testcase_04 AC 378 ms
6,940 KB
testcase_05 AC 231 ms
6,940 KB
testcase_06 AC 465 ms
6,944 KB
testcase_07 AC 468 ms
6,940 KB
testcase_08 AC 479 ms
6,944 KB
testcase_09 AC 457 ms
6,944 KB
testcase_10 AC 458 ms
6,940 KB
testcase_11 AC 464 ms
6,944 KB
testcase_12 AC 461 ms
6,940 KB
testcase_13 AC 459 ms
6,940 KB
testcase_14 AC 460 ms
6,944 KB
testcase_15 AC 446 ms
6,940 KB
testcase_16 AC 472 ms
6,940 KB
testcase_17 AC 463 ms
6,940 KB
testcase_18 AC 472 ms
6,944 KB
testcase_19 AC 465 ms
6,944 KB
testcase_20 AC 497 ms
5,376 KB
testcase_21 AC 471 ms
5,376 KB
testcase_22 AC 454 ms
5,376 KB
testcase_23 AC 481 ms
5,376 KB
testcase_24 AC 475 ms
5,376 KB
testcase_25 AC 466 ms
5,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
5,376 KB
testcase_33 AC 185 ms
5,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