92992024-02-20 11:38:35Leventusz09Sakktábla (75 pont)csharpWrong answer 70/7534ms25752 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sakktáblatorta{
    class Program{
        static void Main(){
            int[] in1 = Console.ReadLine().Split().Select(int.Parse).ToArray();
            int A = in1.Min();
            int B = in1.Max();

            int tmin, i;
            for(i=0; true; i++){
                tmin = i * i / 2;
                if (A < tmin || B < tmin + 1) break;
            }
            Console.WriteLine(i-1);

        }
    }
}
SubtaskSumTestVerdictTimeMemory
base70/75
1Accepted0/034ms22276 KiB
2Accepted0/032ms22720 KiB
3Accepted5/530ms22912 KiB
4Accepted5/530ms23752 KiB
5Wrong answer0/530ms23704 KiB
6Accepted5/530ms23428 KiB
7Accepted5/530ms23648 KiB
8Accepted5/530ms23860 KiB
9Accepted5/532ms24492 KiB
10Accepted5/532ms24456 KiB
11Accepted7/730ms24860 KiB
12Accepted7/730ms24900 KiB
13Accepted7/732ms25488 KiB
14Accepted7/732ms25752 KiB
15Accepted7/732ms25516 KiB