Пример #1
0
		public static void Main() {
			int N = int.Parse(System.Console.ReadLine());

			var cup = new Cup();

			for (int i=0; i<N; i++) {
				var line = System.Console.ReadLine().Split(' ');
				int operation = int.Parse(line[0]);
				int gram = int.Parse(line[1]);

				switch(operation) {
				case 1: cup.addWater(gram); break;
				case 2: cup.addCafee(gram); break;
				default: cup.tasting(gram); break;
				}
			}

			System.Console.WriteLine((int)(100*cup.concentration()));
		}