結果

問題 No.2420 Simple Problem
ユーザー hanba-gu1hanba-gu1
提出日時 2023-08-12 15:50:20
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 875 bytes
コンパイル時間 4,438 ms
コンパイル使用メモリ 263,792 KB
実行使用メモリ 7,296 KB
最終ジャッジ日時 2024-04-30 10:16:22
合計ジャッジ時間 22,369 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,816 KB
testcase_01 AC 220 ms
6,940 KB
testcase_02 AC 4 ms
6,940 KB
testcase_03 AC 81 ms
6,944 KB
testcase_04 AC 425 ms
6,940 KB
testcase_05 AC 268 ms
6,944 KB
testcase_06 AC 523 ms
7,296 KB
testcase_07 AC 531 ms
7,296 KB
testcase_08 AC 536 ms
7,296 KB
testcase_09 AC 536 ms
7,296 KB
testcase_10 AC 538 ms
7,168 KB
testcase_11 AC 542 ms
7,168 KB
testcase_12 AC 531 ms
7,168 KB
testcase_13 AC 532 ms
7,168 KB
testcase_14 AC 530 ms
7,168 KB
testcase_15 AC 529 ms
7,296 KB
testcase_16 AC 531 ms
7,168 KB
testcase_17 AC 530 ms
7,168 KB
testcase_18 AC 533 ms
7,168 KB
testcase_19 AC 535 ms
7,296 KB
testcase_20 AC 526 ms
7,296 KB
testcase_21 AC 536 ms
7,296 KB
testcase_22 AC 536 ms
7,168 KB
testcase_23 AC 528 ms
7,296 KB
testcase_24 AC 531 ms
7,168 KB
testcase_25 AC 528 ms
7,168 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 2 ms
6,940 KB
testcase_33 AC 212 ms
6,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#include<atcoder/all>
using namespace std;
using namespace atcoder;
using ll = int_fast64_t;
using ull = uint_fast64_t;

using mint = modint998244353;

constexpr ll INF = 1ll << 60;

#define iscontain(container, value) (find(container.begin(), container.end(), value) != container.end())

template<typename T, typename D> void printelem(const T& container, const D& divide){
	for(const auto& i : container) cout << i << divide;
	cout << endl;
}
template<typename T> void printelem(const T& container) { printelem(container, ", "); }
template<typename T> T input(){ T ret; cin >> ret; return ret; }

int main(){
	//インプット
	ll N;
	cin >> N;
	vector<ll> A(N), B(N);
	for(ll i = 0; i < N; i++) cin >> A[i] >> B[i];

	//アウトプット
	for(ll i = 0; i < N; i++){
		ll ans = sqrt(A[i]) + sqrt(B[i]) + 1;
		cout << ans << endl;
	}
	
	return 0;
}
0