Submission #230459
Source Code Expand
using System; using System.Collections.Generic; using System.IO; using System.Linq; 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 | A - けんしょう先生のお菓子配り |
User | akiraohta |
Language | C# (Mono 2.10.8.1) |
Score | 0 |
Code Size | 712 Byte |
Status | RE |
Exec Time | 137 ms |
Memory | 12484 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | subtask0_sample01.txt, subtask0_sample02.txt, subtask0_sample03.txt, subtask0_sample04.txt |
All | subtask0_sample01.txt, subtask0_sample02.txt, subtask0_sample03.txt, subtask0_sample04.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
subtask0_sample01.txt | RE | 125 ms | 12480 KB |
subtask0_sample02.txt | RE | 125 ms | 12480 KB |
subtask0_sample03.txt | RE | 122 ms | 12476 KB |
subtask0_sample04.txt | RE | 125 ms | 12484 KB |
subtask1_01.txt | RE | 125 ms | 12480 KB |
subtask1_02.txt | RE | 126 ms | 12476 KB |
subtask1_03.txt | RE | 128 ms | 12480 KB |
subtask1_04.txt | RE | 127 ms | 12480 KB |
subtask1_05.txt | RE | 128 ms | 12472 KB |
subtask1_06.txt | RE | 126 ms | 12480 KB |
subtask1_07.txt | RE | 137 ms | 12476 KB |
subtask1_08.txt | RE | 122 ms | 12476 KB |
subtask1_09.txt | RE | 125 ms | 12440 KB |
subtask1_10.txt | RE | 124 ms | 12480 KB |
subtask1_11.txt | RE | 126 ms | 12472 KB |
subtask1_12.txt | RE | 123 ms | 12480 KB |
subtask1_13.txt | RE | 125 ms | 12468 KB |
subtask1_14.txt | RE | 123 ms | 12472 KB |