111752024-07-08 16:40:18GervidSakktábla (75 pont)cpp17Accepted 75/753ms508 KiB
#include <iostream>
#include <vector>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <limits.h>
#include <algorithm>
#include <math.h>

using namespace std;

int main()
{
	iostream::sync_with_stdio(0);
	cin.tie(0);

    int a, b;
    cin >> a >> b;

    cout << floor(sqrt(min(a, b) * 2 + (a != b)));
}
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/02ms356 KiB
2Accepted0/02ms364 KiB
3Accepted5/53ms464 KiB
4Accepted5/53ms372 KiB
5Accepted5/52ms356 KiB
6Accepted5/53ms356 KiB
7Accepted5/53ms356 KiB
8Accepted5/52ms504 KiB
9Accepted5/53ms400 KiB
10Accepted5/53ms228 KiB
11Accepted7/73ms500 KiB
12Accepted7/73ms508 KiB
13Accepted7/73ms376 KiB
14Accepted7/73ms356 KiB
15Accepted7/73ms484 KiB