17732022-12-02 21:52:24kdbSakktábla (75 pont)cpp11Wrong answer 70/753ms3592 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 n = b * 2 + 1;
    cout << (int)sqrt(n) << endl;
    return 0;
}
/*
12 15
-5

845123 982031
1300
*/
SubtaskSumTestVerdictTimeMemory
base70/75
1Accepted0/03ms1896 KiB
2Accepted0/02ms2120 KiB
3Accepted5/52ms2320 KiB
4Accepted5/52ms2524 KiB
5Accepted5/52ms2564 KiB
6Accepted5/52ms2848 KiB
7Wrong answer0/52ms2732 KiB
8Accepted5/52ms2936 KiB
9Accepted5/52ms3188 KiB
10Accepted5/52ms3396 KiB
11Accepted7/72ms3468 KiB
12Accepted7/72ms3576 KiB
13Accepted7/72ms3580 KiB
14Accepted7/72ms3580 KiB
15Accepted7/72ms3592 KiB