結果
問題 |
No.2420 Simple Problem
|
ユーザー |
|
提出日時 | 2023-08-16 01:59:45 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 148 ms / 2,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 1,638 ms |
コンパイル使用メモリ | 193,220 KB |
最終ジャッジ日時 | 2025-02-16 08:37:15 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 33 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; while(n--){ long double a, b; cin >> a >> b; long double ans = sqrtl(a) + sqrt(b); ans++; cout << (int) ans << "\n"; } }