64422023-11-29 21:19:05Pbg4444Sakktábla (75 pont)cpp17Wrong answer 70/753ms3764 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){
            cout << i-1 << endl;
            break;
        }
    }

}
SubtaskSumTestVerdictTimeMemory
base70/75
1Accepted0/03ms1876 KiB
2Accepted0/03ms2128 KiB
3Accepted5/53ms2212 KiB
4Accepted5/53ms2460 KiB
5Accepted5/53ms2496 KiB
6Accepted5/53ms2604 KiB
7Wrong answer0/53ms2800 KiB
8Accepted5/53ms3056 KiB
9Accepted5/52ms3100 KiB
10Accepted5/53ms3228 KiB
11Accepted7/73ms3436 KiB
12Accepted7/73ms3524 KiB
13Accepted7/72ms3520 KiB
14Accepted7/73ms3652 KiB
15Accepted7/73ms3764 KiB