using System; using System.Collections.Generic; using System.Linq; class Program { static string InputPattern = "InputX"; static List GetInputList() { var WillReturn = new List(); if (InputPattern == "Input1") { WillReturn.Add("4 7"); WillReturn.Add("xxooooo 1000"); WillReturn.Add("oooooxo 1400"); WillReturn.Add("oooxxox 1300"); WillReturn.Add("ooxoxxx 1200"); //2 } else if (InputPattern == "Input2") { WillReturn.Add("3 5"); WillReturn.Add("oooox 1500"); WillReturn.Add("ooxxo 1100"); WillReturn.Add("xxxxx 800"); //0 } else if (InputPattern == "Input3") { WillReturn.Add("8 10"); WillReturn.Add("ooooooxxxx 1500"); WillReturn.Add("oooxoxoxox 1600"); WillReturn.Add("xxoxxxxxxx 400"); WillReturn.Add("ooooxxxxxx 600"); WillReturn.Add("oooooooooo 2300"); WillReturn.Add("xoxxxoxoxo 1200"); WillReturn.Add("oooxoxoxox 1300"); WillReturn.Add("ooooxxxxxx 400"); //3 } else { string wkStr; while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr); } return WillReturn; } static void Main() { List InputList = GetInputList(); //int[] wkArr = InputList[0].Split(' ').Select(pX => int.Parse(pX)).ToArray(); int Answer = 0; foreach (string EachStr in InputList.Skip(1)) { string[] SplitArr = EachStr.Split(' '); string Result = SplitArr[0]; int Rate = int.Parse(SplitArr[1]); bool HasBatu = false; for (int I = 0; I <= 3; I++) { if (Result[I] == 'x') HasBatu = true; } if (HasBatu && Rate>=1200) { Answer++; } } Console.WriteLine(Answer); } }