226132026-01-15 12:21:05tepucagnesSakktábla (75 pont)cpp17Wrong answer 20/752ms316 KiB
#include <iostream>

using namespace std;

int main()
{
    int a, b, o;
    cin >> a >> b;
    if(a==b)
    {
        o=a+b;
    }
    if(a>b)
    {
        o=2*b+1;
    }
    if(a<b)
    {
        o=2*a+1;
    }
    int i=0;
    while (i*i<o)
    {
        i++;
    }
    cout << i;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base20/75
1Accepted0/01ms316 KiB
2Wrong answer0/02ms316 KiB
3Accepted5/51ms316 KiB
4Accepted5/51ms316 KiB
5Accepted5/51ms316 KiB
6Wrong answer0/51ms316 KiB
7Wrong answer0/51ms316 KiB
8Wrong answer0/51ms316 KiB
9Wrong answer0/51ms316 KiB
10Accepted5/51ms316 KiB
11Wrong answer0/71ms316 KiB
12Wrong answer0/71ms316 KiB
13Wrong answer0/71ms316 KiB
14Wrong answer0/71ms316 KiB
15Wrong answer0/71ms316 KiB