using System; using System.Collections.Generic; using System.Linq; namespace KyoProCon { public class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); } static List Judge(List ownBallList, List passCommandList) { foreach (var passCommand in passCommandList) { var passer = passCommand[0] - 1; var receiver = passCommand[1] - 1; var moveBallCount = Math.Min(ownBallList[passer], passCommand[2]); ownBallList[passer] -= moveBallCount; ownBallList[receiver] += moveBallCount; } return ownBallList; } static String GetAsString() { return Console.ReadLine()?.Trim() ?? String.Empty; } public static int GetAsInt() { return int.Parse(GetAsString()); } static int[] GetAsIntArray() { return (Console.ReadLine() ?? string.Empty) .Trim() .Split(' ') .Select(int.Parse) .ToArray(); } static double[] GetAsDoubleArray() { return (Console.ReadLine() ?? string.Empty) .Trim() .Split(' ') .Select(double.Parse) .ToArray(); } static string[] GetAsStringArray() { return (Console.ReadLine() ?? string.Empty) .Trim() .Split(' ') .ToArray(); } static Dictionary GetHashWithIntArray(int rowCount) { var list = new Dictionary(); for (int i = 0; i < rowCount; i++) { var s = (Console.ReadLine() ?? string.Empty).Trim().Split(' '); list.Add( s.First(), s.Skip(1).Select(int.Parse).ToArray() ); } return list; } /// /// rows 行回だけ GetAsInt を繰り返し List を作る /// static List GetAsIntList(int rows) { var l = new List(); for (int i = 0; i < rows; i++) { l.Add(GetAsInt()); } return l; } static List GetAsIntArrayList(int rows) { var l = new List(); for (int i = 0; i < rows; i++) { l.Add(GetAsIntArray()); } return l; } /// /// rows * 1 のリスト /// static List GetAsStringList(int rows) { var l = new List(); for (int i = 0; i < rows; i++) { l.Add(GetAsString()); } return l; } } }