結果
| 問題 |
No.2420 Simple Problem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-20 20:48:22 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 489 ms / 2,000 ms |
| コード長 | 303 bytes |
| コンパイル時間 | 1,775 ms |
| コンパイル使用メモリ | 194,144 KB |
| 最終ジャッジ日時 | 2025-02-14 23:35:33 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 33 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
const long double EPS = 5e-15; // >_<
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;
}
}