44152023-03-27 18:45:08KevinSakktábla (75 pont)cpp17Accepted 75/753ms4264 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int n, m, megoldas;
	cin >> n;
	cin >> m;
	if (n>m)
		n=m+1;
	if (m>n)
		m=n+1;
	megoldas=sqrt(m+n);
	cout << megoldas;
}
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/03ms1876 KiB
2Accepted0/03ms2116 KiB
3Accepted5/53ms2332 KiB
4Accepted5/53ms2572 KiB
5Accepted5/53ms2756 KiB
6Accepted5/53ms2952 KiB
7Accepted5/52ms3188 KiB
8Accepted5/52ms3272 KiB
9Accepted5/52ms3360 KiB
10Accepted5/53ms3452 KiB
11Accepted7/73ms3664 KiB
12Accepted7/73ms3900 KiB
13Accepted7/72ms3820 KiB
14Accepted7/73ms4056 KiB
15Accepted7/72ms4264 KiB