using System; using System.Collections.Generic; using System.Linq; class Program { public void Proc() { // 最初のゲーム、先行が勝った場合 // 偶数→同数、奇数最初の先行が+1勝 // 最初のゲーム、先行が負けた場合 // 偶数→同数、奇数最初の後攻が+1勝 for(int i=0; i<1000; i++) { string inpt = Reader.ReadLine(); } Console.WriteLine(500); } public class Reader { public static bool IsDebug = true; private static String PlainInput = @" 12 5 "; private static System.IO.StringReader Sr = null; public static string ReadLine() { if (IsDebug) { if (Sr == null) { Sr = new System.IO.StringReader(PlainInput.Trim()); } return Sr.ReadLine(); } else { return Console.ReadLine(); } } public static int[] GetInt(char delimiter = ' ', bool trim = false) { string inptStr = ReadLine(); if (trim) { inptStr = inptStr.Trim(); } string[] inpt = inptStr.Split(delimiter); int[] ret = new int[inpt.Length]; for (int i = 0; i < inpt.Length; i++) { ret[i] = int.Parse(inpt[i]); } return ret; } } static void Main() { Program prg = new Program(); prg.Proc(); } }