結果
| 問題 |
No.2420 Simple Problem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-22 00:21:34 |
| 言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 276 bytes |
| コンパイル時間 | 22,180 ms |
| コンパイル使用メモリ | 364,244 KB |
| 最終ジャッジ日時 | 2025-02-14 23:57:37 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 TLE * 20 |
ソースコード
#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_dec_float.hpp>
using namespace std;
int main(void) {
int N;
cin >> N;
for(int i = 0; i < N; i++){
boost::multiprecision::cpp_dec_float_50 A,B;
cin >> A >> B;
cout<<floor(sqrt(A)+sqrt(B)+1)<<endl;
}
}