Beispiel #1
0
        void Solve(StreamScanner ss, StreamWriter sw)
        {
            //---------------------------------
            var H = ss.Next(long.Parse);
            var W = ss.Next(long.Parse);

            var ans = Math.Min(GetAns(H, W), GetAns(W, H));

            sw.WriteLine(ans);
            //---------------------------------
        }
Beispiel #2
0
        static void Main()
        {
            var ss = new StreamScanner(new StreamReader(Console.OpenStandardInput()));
            var sw = new StreamWriter(Console.OpenStandardOutput())
            {
                AutoFlush = false
            };

            new Program().Solve(ss, sw);
            sw.Flush();
        }