45232023-03-29 12:24:14TortelliniJrSakktábla (75 pont)csharpWrong answer 70/7530ms25400 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((int)(Math.Sqrt(inp[0] * 2 + 1)));
            }
            else
            {
                Console.WriteLine((int)(Math.Sqrt(inp[1] * 2 + 1)));
            }
            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base70/75
1Accepted0/030ms22216 KiB
2Accepted0/029ms22116 KiB
3Accepted5/530ms23004 KiB
4Accepted5/529ms22896 KiB
5Accepted5/529ms23224 KiB
6Accepted5/529ms23452 KiB
7Wrong answer0/529ms23552 KiB
8Accepted5/529ms23984 KiB
9Accepted5/530ms24272 KiB
10Accepted5/529ms24848 KiB
11Accepted7/729ms24752 KiB
12Accepted7/729ms24892 KiB
13Accepted7/729ms25028 KiB
14Accepted7/730ms25400 KiB
15Accepted7/729ms25304 KiB