14092022-09-04 11:38:12HorakZsofiSakktábla (75 pont)cpp11Accepted 75/753ms3748 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int a, b;
	cin>>a>>b;
	int x=0;
	if(a<b){
		 x=a*2+1;
	}
	else if(b<a){
		 x=b*2+1;
	}
	else{x=a*2;}
	int y = sqrt(x);
	cout<<y;
}
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/03ms1872 KiB
2Accepted0/02ms2132 KiB
3Accepted5/52ms2276 KiB
4Accepted5/52ms2672 KiB
5Accepted5/52ms2792 KiB
6Accepted5/52ms2804 KiB
7Accepted5/52ms2932 KiB
8Accepted5/52ms3296 KiB
9Accepted5/52ms3444 KiB
10Accepted5/52ms3516 KiB
11Accepted7/72ms3412 KiB
12Accepted7/72ms3480 KiB
13Accepted7/72ms3612 KiB
14Accepted7/72ms3740 KiB
15Accepted7/72ms3748 KiB