結果
| 問題 |
No.2420 Simple Problem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-20 20:18:14 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 296 bytes |
| コンパイル時間 | 1,987 ms |
| コンパイル使用メモリ | 193,724 KB |
| 最終ジャッジ日時 | 2025-02-14 23:34:29 |
|
ジャッジサーバーID (参考情報) |
judge6 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 27 WA * 6 |
ソースコード
#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;
}
}