Submission #230447


Source Code Expand

using System;
using System.Collections.Generic;
using System.IO;
namespace Test
{
	class ABC014
	{
		public static void Main(string[] args)
		{
			//input
			int n = int.Parse(Console.ReadLine());
			/*
			string[] input = new string[2];
			int[] a = new int[n];
			int[] b = new int[n];
			*/

			int[] color = new int[1000001];
			string[] input = new string[2];
			int a;
			int b;

			for (int i = 0; i < n; i++) {
				input = Console.ReadLine ().Split (' ');
				a = int.Parse (input [0]);
				b = int.Parse (input [1]);

				for (int j = a; j <= b; j++) {
					color [j]++;
				}
			}

			int ans = color.Max ();
			Console.WriteLine(ans);
		}
	}
}

Submission Info

Submission Time
Task C - AtColor
User akiraohta
Language C# (Mono 2.10.8.1)
Score 0
Code Size 692 Byte
Status CE

Compile Error

./Main.cs(33,41): error CS1061: Type `int[]' does not contain a definition for `Max' and no extension method `Max' of type `int[]' could be found (are you missing a using directive or an assembly reference?)
/usr/lib/mono/4.0/mscorlib.dll (Location of the symbol related to previous error)