64402023-11-29 21:13:04Pbg4444Sakktábla (75 pont)cpp17Wrong answer 46/753ms3876 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
base46/75
1Accepted0/03ms1876 KiB
2Wrong answer0/03ms2076 KiB
3Accepted5/53ms2284 KiB
4Accepted5/53ms2376 KiB
5Wrong answer0/53ms2764 KiB
6Accepted5/53ms3008 KiB
7Accepted5/53ms3232 KiB
8Wrong answer0/53ms3376 KiB
9Accepted5/53ms3628 KiB
10Wrong answer0/53ms3500 KiB
11Wrong answer0/73ms3552 KiB
12Wrong answer0/73ms3656 KiB
13Accepted7/73ms3668 KiB
14Accepted7/73ms3756 KiB
15Accepted7/73ms3876 KiB