64412023-11-29 21:15:14Pbg4444Sakktábla (75 pont)cpp17Wrong answer 55/753ms4412 KiB
#include <iostream>
#include <cmath>

using namespace std;

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

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

}
SubtaskSumTestVerdictTimeMemory
base55/75
1Wrong answer0/03ms1876 KiB
2Accepted0/03ms2268 KiB
3Wrong answer0/53ms2400 KiB
4Wrong answer0/53ms2764 KiB
5Wrong answer0/53ms2772 KiB
6Accepted5/53ms3012 KiB
7Accepted5/53ms3228 KiB
8Accepted5/53ms3388 KiB
9Accepted5/53ms3600 KiB
10Wrong answer0/53ms3680 KiB
11Accepted7/73ms3688 KiB
12Accepted7/73ms3844 KiB
13Accepted7/73ms4092 KiB
14Accepted7/73ms4176 KiB
15Accepted7/73ms4412 KiB