9892022-02-19 16:12:27JMMirkoSakktábla (75 pont)cpp14Accepted 75/752ms2028 KiB
#include<bits/stdc++.h>
using namespace std;

int main(){
    int a,b,m;
    cin >> a >> b;
    if(a==b){
        m=a+b;
    }else{
        m=min(a,b)*2+1;
    }
    for(int i=0;i<m+2;i++){
        if(i*i>m){
            cout << i-1;
            return 0;
        }
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/02ms1904 KiB
2Accepted0/01ms1916 KiB
3Accepted5/51ms1876 KiB
4Accepted5/51ms1984 KiB
5Accepted5/51ms1984 KiB
6Accepted5/51ms1992 KiB
7Accepted5/52ms2000 KiB
8Accepted5/51ms2000 KiB
9Accepted5/51ms2004 KiB
10Accepted5/51ms2008 KiB
11Accepted7/71ms2008 KiB
12Accepted7/71ms2012 KiB
13Accepted7/71ms2020 KiB
14Accepted7/71ms2020 KiB
15Accepted7/71ms2028 KiB