45212023-03-29 12:21:29TortelliniJrSakktábla (75 pont)csharpRuntime error 0/7535ms24716 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/034ms21808 KiB
2Runtime error0/034ms21796 KiB
3Runtime error0/535ms22604 KiB
4Runtime error0/534ms22808 KiB
5Runtime error0/534ms23084 KiB
6Runtime error0/534ms23036 KiB
7Runtime error0/532ms23368 KiB
8Runtime error0/534ms23444 KiB
9Runtime error0/532ms23520 KiB
10Runtime error0/534ms23748 KiB
11Runtime error0/732ms23820 KiB
12Runtime error0/734ms24328 KiB
13Runtime error0/734ms24716 KiB
14Runtime error0/732ms24248 KiB
15Runtime error0/732ms24564 KiB