Submission #2212940
Source Code Expand
#include<bits/stdc++.h> using namespace std; #define inf 1e9 #define ll long long #define M 1000000007 #define P pair<int,int> #define FOR(i,m,n) for(int i=m;i<n;i++) #define rep(i,n) FOR(i,0,n) const int vx[4] = {0,1,0,-1}; const int vy[4] = {1,0,-1,0}; #define PI 3.14159265 int n; int a[1000000]; ll sum; int main(){ cin>>n; rep(i,3*n) cin>>a[i]; sort(a,a+3*n); FOR(i,n,2*n) sum+=a[i]; cout<<sum<<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder Group Contest |
User | mint |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 473 Byte |
Status | WA |
Exec Time | 176 ms |
Memory | 1408 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 | WA | 1 ms | 256 KB |
02.txt | WA | 1 ms | 256 KB |
03.txt | WA | 1 ms | 256 KB |
04.txt | WA | 1 ms | 256 KB |
05.txt | WA | 9 ms | 384 KB |
06.txt | AC | 176 ms | 1408 KB |
07.txt | AC | 57 ms | 1408 KB |
08.txt | WA | 126 ms | 1408 KB |
09.txt | WA | 125 ms | 1408 KB |
10.txt | WA | 126 ms | 1408 KB |