結果

問題 No.2420 Simple Problem
ユーザー dyktr_06dyktr_06
提出日時 2023-06-20 20:18:14
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 296 bytes
コンパイル時間 3,576 ms
コンパイル使用メモリ 197,468 KB
実行使用メモリ 4,388 KB
最終ジャッジ日時 2023-09-10 20:26:56
合計ジャッジ時間 18,667 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 195 ms
4,380 KB
testcase_02 AC 3 ms
4,376 KB
testcase_03 AC 70 ms
4,380 KB
testcase_04 AC 369 ms
4,380 KB
testcase_05 AC 238 ms
4,380 KB
testcase_06 AC 471 ms
4,384 KB
testcase_07 AC 462 ms
4,380 KB
testcase_08 AC 454 ms
4,380 KB
testcase_09 AC 461 ms
4,380 KB
testcase_10 AC 465 ms
4,380 KB
testcase_11 AC 465 ms
4,384 KB
testcase_12 AC 460 ms
4,380 KB
testcase_13 AC 478 ms
4,380 KB
testcase_14 AC 458 ms
4,384 KB
testcase_15 AC 460 ms
4,384 KB
testcase_16 AC 464 ms
4,380 KB
testcase_17 AC 462 ms
4,384 KB
testcase_18 AC 472 ms
4,380 KB
testcase_19 AC 462 ms
4,380 KB
testcase_20 AC 467 ms
4,380 KB
testcase_21 AC 474 ms
4,384 KB
testcase_22 AC 469 ms
4,380 KB
testcase_23 AC 468 ms
4,384 KB
testcase_24 AC 470 ms
4,384 KB
testcase_25 AC 466 ms
4,380 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 1 ms
4,380 KB
testcase_33 AC 188 ms
4,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

const long double EPS = 1e-14;

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