93032024-02-20 11:44:54Leventusz09Sakktábla (75 pont)csharpForditási hiba
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();

            if (B == 0){
                Console.WriteLine(0);
                return;
            }

            int tmin, i=0;
            while(true){
                tmin = i * i / 2;
                if (A < tmin || B < tmin + ((i%2==1)?(1):(0))) break;
                i++;
            }
            Console.WriteLine(i-1);í
        }
    }
}
Forditási hiba
exit status 1
Compilation failed: 1 error(s), 0 warnings