Submission #1356337
Source Code Expand
#include <iostream> using namespace std; int main(void){ long long int n,a[400000],ans=0,w; cin>>n; for(int i=0;i<3*n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ for(int j=0;j<3*n-i-1;j++){ if(a[j]<a[j+1]){ w=a[j]; a[j]=a[j+1]; a[j+1]=w; } } } for(int i=n;i<2*n;i++){ ans+=a[i]; } cout<<ans<<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder Group Contest |
User | Hirosesesese23 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 472 Byte |
Status | WA |
Exec Time | 2103 ms |
Memory | 3072 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 | 309 ms | 384 KB |
06.txt | TLE | 2103 ms | 2560 KB |
07.txt | TLE | 2103 ms | 2816 KB |
08.txt | TLE | 2103 ms | 2816 KB |
09.txt | TLE | 2103 ms | 3072 KB |
10.txt | TLE | 2103 ms | 2560 KB |