45142023-03-29 12:02:08TortelliniJrSakktábla (75 pont)csharpRuntime error 0/7535ms25436 KiB
using System;
using System.Linq;
namespace Sakktáblatorta
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] inp = Console.ReadLine().Split().Select(int.Parse).ToArray();
            if (inp[0] < inp[1])
            {
                Console.WriteLine(Math.Floor(Math.Sqrt(inp[0] * 2 + 1)));
            }
            else
            {
                Console.WriteLine(Math.Floor(Math.Sqrt(inp[1] * 2 + 1)));
            }
            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base0/75
1Runtime error0/035ms21340 KiB
2Runtime error0/035ms22292 KiB
3Runtime error0/534ms22752 KiB
4Runtime error0/535ms23172 KiB
5Runtime error0/535ms23660 KiB
6Runtime error0/534ms23836 KiB
7Runtime error0/535ms23968 KiB
8Runtime error0/535ms24096 KiB
9Runtime error0/534ms24880 KiB
10Runtime error0/535ms24820 KiB
11Runtime error0/734ms24832 KiB
12Runtime error0/734ms25436 KiB
13Runtime error0/735ms25164 KiB
14Runtime error0/735ms25364 KiB
15Runtime error0/734ms25364 KiB