Submission #1014701


Source Code Expand

#include <bits/stdc++.h>

#define get_variable_name(x) #x
#define debug(x) cout << #x << " = " << x << endl
#define rep(i,n) for(int (i) = 0; (i) < (n); (i)++)

#define ALL(x) (x).begin(), (x).end()
#define SORT(x) sort((x).begin(), (x).end())
#define REVERSE(x) reverse( (x).begin(),(x).end())
#define UNIQUE(x) (x).erase(unique(ALL((x))), (x).end())
#define PW(x) (1LL<<(x))

using namespace std;
using ll = int64_t;
using P = pair<int, int>;

template<class T,class U>
ostream& operator<<(ostream &os, const pair<T, U> &p) {
    os << get_variable_name(p) << " = (" << p.first <<", " << p.second << ")";
    return os;
}

template<class T>
ostream& operator <<(ostream& os, const vector<T> &v){
    cout << get_variable_name(v) << " = [";
    for(auto i : v) 
        os << " " << i;
    os << " ]";
    return os;
}


const int INF = 1e8;

int main() {
    ios::sync_with_stdio(false);
    vector<int> v(3);
    rep(i, 3) cin >> v[i];
    SORT(v);
    cout << v[1] << endl;
}

Submission Info

Submission Time
Task A - 高橋くんと年齢
User Allen
Language C++11 (GCC 4.8.1)
Score 100
Code Size 1021 Byte
Status AC
Exec Time 20 ms
Memory 924 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 4
AC × 24
Set Name Test Cases
Sample subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt, subtask0_sample_04.txt
All 0.txt, 1.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt, subtask0_sample_04.txt
Case Name Status Exec Time Memory
0.txt AC 18 ms 908 KB
1.txt AC 18 ms 924 KB
10.txt AC 19 ms 920 KB
11.txt AC 18 ms 920 KB
12.txt AC 17 ms 920 KB
13.txt AC 19 ms 924 KB
14.txt AC 18 ms 916 KB
15.txt AC 18 ms 924 KB
16.txt AC 18 ms 920 KB
17.txt AC 19 ms 924 KB
18.txt AC 18 ms 916 KB
19.txt AC 19 ms 924 KB
2.txt AC 18 ms 916 KB
3.txt AC 17 ms 920 KB
4.txt AC 18 ms 924 KB
5.txt AC 17 ms 920 KB
6.txt AC 17 ms 920 KB
7.txt AC 18 ms 920 KB
8.txt AC 17 ms 920 KB
9.txt AC 20 ms 920 KB
subtask0_sample_01.txt AC 19 ms 868 KB
subtask0_sample_02.txt AC 17 ms 920 KB
subtask0_sample_03.txt AC 19 ms 924 KB
subtask0_sample_04.txt AC 18 ms 924 KB