Submission #174117


Source Code Expand

#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <map>
#include <set>
#include <queue>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <sstream>
#include <vector>
#include <string>
#include <iomanip>
#include <bitset>
using namespace std;
#define INF	100000000
#define MOD 1000000007
#define pb push_back
#define mp make_pair
#define fi first
#define sec second
#define lb lower_bound
#define ub upper_bound
#define SS stringstream
#define rep(i,n) for(int i = 0; i < n; i++)
#define sz(x) ((int)(x).size())
#define SORT(x) sort((x).begin(), (x).end())
#define RSORT(x) sort((x).begin(), (x).end(), greater<int>() )
#define clr(a,b) memset((a),(b),sizeof(a))
typedef pair<int, int> P;
typedef long long int ll;
typedef vector<int> Vi;
typedef vector<ll> Vll;
typedef vector<P> Vp;
typedef priority_queue<P, vector<P>, greater<P> > PQ;

int n;

int main(){
	ios::sync_with_stdio(false);
	cin.tie(0);
	cin >> n;
	Vi vec(n);
	rep(i,n) cin >> vec[i];
	RSORT(vec);
	cout << vec[1] << endl;
}

Submission Info

Submission Time
Task B - 心配性な富豪、ファミリーレストランに行く。
User gasin
Language C++ (G++ 4.6.4)
Score 0
Code Size 1085 Byte
Status WA
Exec Time 25 ms
Memory 924 KB

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
AC × 5
WA × 10
Set Name Test Cases
All random_1.txt, random_10.txt, random_2.txt, random_3.txt, random_4.txt, random_5.txt, random_6.txt, random_7.txt, random_8.txt, random_9.txt, small_1.txt, small_2.txt, small_3.txt, small_4.txt, small_5.txt
Case Name Status Exec Time Memory
random_1.txt WA 23 ms 908 KB
random_10.txt AC 25 ms 800 KB
random_2.txt WA 23 ms 800 KB
random_3.txt WA 21 ms 916 KB
random_4.txt WA 21 ms 840 KB
random_5.txt WA 22 ms 920 KB
random_6.txt WA 21 ms 920 KB
random_7.txt WA 23 ms 792 KB
random_8.txt WA 22 ms 924 KB
random_9.txt AC 20 ms 916 KB
sample_1.txt WA 22 ms 924 KB
sample_2.txt AC 22 ms 916 KB
sample_3.txt WA 21 ms 912 KB
small_1.txt AC 23 ms 800 KB
small_2.txt AC 22 ms 924 KB
small_3.txt AC 20 ms 908 KB
small_4.txt WA 22 ms 808 KB
small_5.txt WA 23 ms 812 KB