45122023-03-29 11:50:01TortelliniJrSakktábla (75 pont)csharpRuntime error 0/7535ms25120 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.Sqrt(inp[0] * 2 + 1));
            }
            else
            {
                Console.WriteLine(Math.Sqrt(inp[1] * 2 + 1));
            }
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base0/75
1Runtime error0/034ms21700 KiB
2Runtime error0/034ms22040 KiB
3Runtime error0/532ms22260 KiB
4Runtime error0/535ms23184 KiB
5Runtime error0/534ms22988 KiB
6Runtime error0/534ms23076 KiB
7Runtime error0/535ms23692 KiB
8Runtime error0/534ms23812 KiB
9Runtime error0/534ms24108 KiB
10Runtime error0/534ms24148 KiB
11Runtime error0/734ms24208 KiB
12Runtime error0/735ms24372 KiB
13Runtime error0/734ms24568 KiB
14Runtime error0/735ms24544 KiB
15Runtime error0/735ms25120 KiB