Submission #1194608
Source Code Expand
#include <iostream> #include <ccomplex> #include <vector> #include <cassert> #include <utility> #include <algorithm> #include <string> #include <deque> #include <queue> #include <functional> #include <cmath> #include <iomanip> #include <map> #include <numeric> #include <list> #include <assert.h> #include <math.h> #include <valarray> #include <stdio.h> #include <algorithm> #include <set> #include <complex> #include <list> #include <time.h> #include <stack> #include <locale> #include <clocale> #include <ctype.h> #include <wchar.h> using namespace std; typedef long long int LL; typedef pair<long long int, long long int> pii; typedef pair<double, double> pdd; #define SORT(c) sort((c).begin(),(c).end()) #define BACKSORT(c) sort((c).begin(),(c).end(),std::greater<LL>()) #define FOR(i,a,b) for(LL i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) int xcomp(vector<LL>& a, vector<LL>& b) { return a[0] < b[0]; } #define XSORT(c) sort((c).begin(),(c).end(),xcomp) #define ALL(x) (x).begin(),(x).end() LL mod = 1000000007; int main() { LL n; cin >> n; vector<LL> v(3 * n, 0); REP(i, n * 3) { cin >> v[i]; } SORT(v); LL sum = 0; REP(i, n) { sum += v[n + 2 * i]; } cout << sum << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder Group Contest |
User | ten986 |
Language | C++14 (GCC 5.4.1) |
Score | 300 |
Code Size | 1267 Byte |
Status | AC |
Exec Time | 132 ms |
Memory | 2560 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 | 1 ms | 256 KB |
00_example_02.txt | AC | 1 ms | 256 KB |
01.txt | AC | 2 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 | 8 ms | 384 KB |
06.txt | AC | 132 ms | 2560 KB |
07.txt | AC | 51 ms | 2560 KB |
08.txt | AC | 103 ms | 2560 KB |
09.txt | AC | 103 ms | 2560 KB |
10.txt | AC | 103 ms | 2560 KB |