Submission #1352947
Source Code Expand
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yahoo_procon2017_qual_b { class Program { static void Main(string[] args) { int num = 0; string[] str = Console.ReadLine().Split(); int N = int.Parse(str[0]); int K = int.Parse(str[1]); int[] A = Console.ReadLine().Split().Select(int.Parse).ToArray(); for(int i = 0; i < K; i++) { num += A.Min() + i; A[Array.IndexOf(A, A.Min())] = 99999999; } Console.WriteLine(num); } } }
Submission Info
Submission Time | |
---|---|
Task | B - オークション |
User | sh10_t |
Language | C# (Mono 4.6.2.0) |
Score | 0 |
Code Size | 703 Byte |
Status | TLE |
Exec Time | 2108 ms |
Memory | 22620 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt |
All | sample1.txt, sample2.txt, in1.txt, in10.txt, in11.txt, in12.txt, in13.txt, in2.txt, in3.txt, in4.txt, in5.txt, in6.txt, in7.txt, in8.txt, in9.txt, sample1.txt, sample2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
in1.txt | TLE | 2108 ms | 21472 KB |
in10.txt | TLE | 2108 ms | 19424 KB |
in11.txt | TLE | 2108 ms | 21472 KB |
in12.txt | AC | 75 ms | 17760 KB |
in13.txt | AC | 24 ms | 11232 KB |
in2.txt | TLE | 2108 ms | 19424 KB |
in3.txt | TLE | 2108 ms | 20572 KB |
in4.txt | AC | 350 ms | 17760 KB |
in5.txt | AC | 101 ms | 17760 KB |
in6.txt | AC | 73 ms | 19808 KB |
in7.txt | TLE | 2108 ms | 22620 KB |
in8.txt | TLE | 2108 ms | 19424 KB |
in9.txt | AC | 101 ms | 19808 KB |
sample1.txt | AC | 24 ms | 11232 KB |
sample2.txt | AC | 24 ms | 11232 KB |