17742022-12-02 21:55:02kdbSakktábla (75 pont)cpp11Accepted 75/753ms3816 KiB
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
    cin.tie(nullptr);
    cout.tie(nullptr);
    ios_base::sync_with_stdio(false);
    int a, b, n = 0;
    cin >> a >> b;
    if (a < b) n = a * 2 + 1;
    else if (a > b) n = b * 2 + 1;
    else n = b * 2;
    cout << (int)sqrt(n) << endl;
    return 0;
}
/*
12 15
-5

845123 982031
1300
*/
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/03ms1892 KiB
2Accepted0/02ms2124 KiB
3Accepted5/52ms2192 KiB
4Accepted5/52ms2288 KiB
5Accepted5/52ms2520 KiB
6Accepted5/52ms2720 KiB
7Accepted5/52ms2920 KiB
8Accepted5/52ms3004 KiB
9Accepted5/52ms3136 KiB
10Accepted5/52ms3200 KiB
11Accepted7/72ms3428 KiB
12Accepted7/72ms3628 KiB
13Accepted7/72ms3684 KiB
14Accepted7/72ms3816 KiB
15Accepted7/72ms3796 KiB