Submission #3600312
Source Code Expand
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <algorithm> #include <functional> #include <string> #include <vector> #include <stdio.h> using namespace std; #define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i) #define REPL(i,f,n) for(int i=f, i##_len=(n); i<i##_len; ++i) typedef long long ll; int main() { cin.tie(0); ios::sync_with_stdio(false); int N; int a[100010]; cin >> N; REP(i, 3*N) cin >> a[i]; sort(a, a + 3*N,greater<int>()); ll sum = 0; for (int i = 1; i < 2 * N;i+=2) { sum += a[i]; } cout << sum << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder Group Contest |
User | KTR |
Language | C++14 (Clang 3.8.0) |
Score | 0 |
Code Size | 602 Byte |
Status | RE |
Exec Time | 204 ms |
Memory | 640 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 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 | 1 ms | 256 KB |
00_example_02.txt | AC | 1 ms | 256 KB |
01.txt | AC | 1 ms | 256 KB |
02.txt | AC | 1 ms | 256 KB |
03.txt | AC | 1 ms | 256 KB |
04.txt | AC | 1 ms | 256 KB |
05.txt | AC | 17 ms | 384 KB |
06.txt | RE | 204 ms | 640 KB |
07.txt | RE | 140 ms | 640 KB |
08.txt | RE | 173 ms | 640 KB |
09.txt | RE | 174 ms | 640 KB |
10.txt | RE | 174 ms | 640 KB |