44172023-03-27 18:49:29MatematikaSakktábla (75 pont)cpp17Accepted 75/753ms3440 KiB
#include <iostream>
#include<cmath>

using namespace std;

int main()
{
    int a, b, kimenet;
    cin >> a >> b;
    if(a==b)
    {
        kimenet=sqrt(a+b);
    }
    else
    {
        a=(a>b)? b+1:a;
        b=(a>b)? b:a+1;
        kimenet=sqrt(a+b);
    }
    cout << kimenet;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/03ms1876 KiB
2Accepted0/03ms2068 KiB
3Accepted5/53ms2280 KiB
4Accepted5/53ms2528 KiB
5Accepted5/53ms2880 KiB
6Accepted5/52ms2888 KiB
7Accepted5/52ms2848 KiB
8Accepted5/52ms2976 KiB
9Accepted5/52ms3032 KiB
10Accepted5/52ms3040 KiB
11Accepted7/73ms3008 KiB
12Accepted7/73ms3132 KiB
13Accepted7/73ms3220 KiB
14Accepted7/73ms3228 KiB
15Accepted7/73ms3440 KiB