結果

問題 No.2420 Simple Problem
ユーザー dyktr_06
提出日時 2023-06-20 20:12:42
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 2,155 ms
コンパイル使用メモリ 194,060 KB
最終ジャッジ日時 2025-02-14 23:31:56
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 27 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

const long double EPS = 1e-12;

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