111742024-07-08 16:38:12GervidSakktábla (75 pont)cpp17Wrong answer 70/753ms756 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 + 1));
}
SubtaskSumTestVerdictTimeMemory
base70/75
1Accepted0/03ms392 KiB
2Accepted0/03ms576 KiB
3Accepted5/53ms400 KiB
4Accepted5/53ms756 KiB
5Accepted5/53ms504 KiB
6Accepted5/53ms392 KiB
7Wrong answer0/53ms356 KiB
8Accepted5/53ms392 KiB
9Accepted5/53ms504 KiB
10Accepted5/53ms488 KiB
11Accepted7/73ms632 KiB
12Accepted7/73ms496 KiB
13Accepted7/72ms356 KiB
14Accepted7/73ms360 KiB
15Accepted7/73ms620 KiB