64432023-11-29 21:25:53Pbg4444Sakktábla (75 pont)cpp17Accepted 75/753ms4172 KiB
#include <iostream>
#include <cmath>

using namespace std;

int main(){
    int f, e;
    cin >> f >> e;

    for(int i = 1;; i++){
        if(round(i*i / 2) > f || round(i*i / 2) > e || i*i > f+e){
            cout << i-1 << endl;
            break;
        }
    }

}
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/03ms1872 KiB
2Accepted0/03ms2124 KiB
3Accepted5/53ms2284 KiB
4Accepted5/53ms2540 KiB
5Accepted5/53ms2600 KiB
6Accepted5/53ms2812 KiB
7Accepted5/53ms2904 KiB
8Accepted5/53ms3000 KiB
9Accepted5/53ms3212 KiB
10Accepted5/52ms3328 KiB
11Accepted7/73ms3424 KiB
12Accepted7/73ms3672 KiB
13Accepted7/73ms3876 KiB
14Accepted7/73ms3992 KiB
15Accepted7/73ms4172 KiB