Submission #1194019
Source Code Expand
using System; using System.Linq; namespace AGC012 { public class A { private void Run() { var N = int.Parse(Console.ReadLine().Trim()); var A = Console.ReadLine().Trim().Split().Select(long.Parse).OrderByDescending(x => x).ToArray(); Console.WriteLine(A.Take(N * 2).Where((x, i) => i % 2 == 1).Sum()); } public static void Main() { var old = Console.Out; using (var writer = new System.IO.StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }) { Console.SetOut(writer); new A().Run(); Console.Out.Flush(); Console.SetOut(old); } } } }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder Group Contest |
User | Tan90909090 |
Language | C# (Mono 4.6.2.0) |
Score | 300 |
Code Size | 783 Byte |
Status | AC |
Exec Time | 324 ms |
Memory | 55688 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_example_01.txt, 00_example_02.txt |
All | 00_example_01.txt, 00_example_02.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_example_01.txt | AC | 28 ms | 11348 KB |
00_example_02.txt | AC | 27 ms | 9428 KB |
01.txt | AC | 27 ms | 11476 KB |
02.txt | AC | 27 ms | 11476 KB |
03.txt | AC | 26 ms | 9428 KB |
04.txt | AC | 27 ms | 9428 KB |
05.txt | AC | 43 ms | 13792 KB |
06.txt | AC | 276 ms | 55688 KB |
07.txt | AC | 202 ms | 41440 KB |
08.txt | AC | 322 ms | 45236 KB |
09.txt | AC | 322 ms | 45236 KB |
10.txt | AC | 324 ms | 45236 KB |