42832023-03-21 19:50:51xxxSakktábla (75 pont)cpp14Wrong answer 70/753ms4124 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n, m;
    cin >> n >> m;
    int temp;
    temp = (min(n, m) * 2) + 1;
    for (int i = sqrt(temp); i > 0; i--) {
        if (i * i <= temp) {
            cout << i << endl;
            return 0;
        }
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base70/75
1Accepted0/03ms1876 KiB
2Accepted0/03ms2120 KiB
3Accepted5/53ms2332 KiB
4Accepted5/53ms2544 KiB
5Accepted5/53ms2752 KiB
6Accepted5/52ms2836 KiB
7Wrong answer0/52ms2784 KiB
8Accepted5/53ms2912 KiB
9Accepted5/53ms3128 KiB
10Accepted5/53ms3372 KiB
11Accepted7/73ms3552 KiB
12Accepted7/72ms3636 KiB
13Accepted7/73ms3636 KiB
14Accepted7/73ms3872 KiB
15Accepted7/73ms4124 KiB