Submission #3691172


Source Code Expand

#include<iostream>
#include<vector>
#include<algorithm>
#include<cctype>
#include<utility>
#include<string>
#include<cmath>
#include<cstring>
#include<queue>
#include<map>
#include<queue>

#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
#define INF 1000000007
using namespace std;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;
typedef long long int ll;
ll dx[4] = {1,0,0,-1};
ll dy[4] = {0,1,-1,0};

#define ARRAY_MAX 1005

int main(){

    int n;
    cin >> n;

    int a,b,c;
    int h = -1;
    int w = -1;
    int v = -1;

    REP(i,n){
        cin >> a >> b >> c;
        int maxi = max(max(a,b),c);
        int mini = min(min(a,b),c);
        int middle = a+b+c-maxi-mini;
        h = max(h,maxi);
        w = max(w,middle);
        v = max(v,mini);
    }

    cout << h*w*v << endl;

    return 0;
}

Submission Info

Submission Time
Task B - 引越しできるかな?
User punipuni
Language C++14 (GCC 5.4.1)
Score 100
Code Size 1187 Byte
Status AC
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name part1 part2
Score / Max Score 40 / 40 60 / 60
Status
AC × 35
AC × 65
Set Name Test Cases
part1 small/small_00_sample_01.txt, small/small_00_sample_02.txt, small/small_00_sample_03.txt, small/small_00_sample_04.txt, small/small_01_rand_00.txt, small/small_01_rand_01.txt, small/small_01_rand_02.txt, small/small_01_rand_03.txt, small/small_01_rand_04.txt, small/small_01_rand_05.txt, small/small_01_rand_06.txt, small/small_01_rand_07.txt, small/small_01_rand_08.txt, small/small_01_rand_09.txt, small/small_02_maxrand_00.txt, small/small_02_maxrand_01.txt, small/small_02_maxrand_02.txt, small/small_02_maxrand_03.txt, small/small_02_maxrand_04.txt, small/small_02_maxrand_05.txt, small/small_02_maxrand_06.txt, small/small_02_maxrand_07.txt, small/small_02_maxrand_08.txt, small/small_02_maxrand_09.txt, small/small_03_maxrandp_00.txt, small/small_03_maxrandp_01.txt, small/small_03_maxrandp_02.txt, small/small_03_maxrandp_03.txt, small/small_03_maxrandp_04.txt, small/small_03_maxrandp_05.txt, small/small_03_maxrandp_06.txt, small/small_03_maxrandp_07.txt, small/small_03_maxrandp_08.txt, small/small_03_maxrandp_09.txt, small/small_99_min.txt
part2 small/small_00_sample_01.txt, small/small_00_sample_02.txt, small/small_00_sample_03.txt, small/small_00_sample_04.txt, small/small_01_rand_00.txt, small/small_01_rand_01.txt, small/small_01_rand_02.txt, small/small_01_rand_03.txt, small/small_01_rand_04.txt, small/small_01_rand_05.txt, small/small_01_rand_06.txt, small/small_01_rand_07.txt, small/small_01_rand_08.txt, small/small_01_rand_09.txt, small/small_02_maxrand_00.txt, small/small_02_maxrand_01.txt, small/small_02_maxrand_02.txt, small/small_02_maxrand_03.txt, small/small_02_maxrand_04.txt, small/small_02_maxrand_05.txt, small/small_02_maxrand_06.txt, small/small_02_maxrand_07.txt, small/small_02_maxrand_08.txt, small/small_02_maxrand_09.txt, small/small_03_maxrandp_00.txt, small/small_03_maxrandp_01.txt, small/small_03_maxrandp_02.txt, small/small_03_maxrandp_03.txt, small/small_03_maxrandp_04.txt, small/small_03_maxrandp_05.txt, small/small_03_maxrandp_06.txt, small/small_03_maxrandp_07.txt, small/small_03_maxrandp_08.txt, small/small_03_maxrandp_09.txt, small/small_99_min.txt, large/large_01_rand_00.txt, large/large_01_rand_01.txt, large/large_01_rand_02.txt, large/large_01_rand_03.txt, large/large_01_rand_04.txt, large/large_01_rand_05.txt, large/large_01_rand_06.txt, large/large_01_rand_07.txt, large/large_01_rand_08.txt, large/large_01_rand_09.txt, large/large_02_maxrand_00.txt, large/large_02_maxrand_01.txt, large/large_02_maxrand_02.txt, large/large_02_maxrand_03.txt, large/large_02_maxrand_04.txt, large/large_02_maxrand_05.txt, large/large_02_maxrand_06.txt, large/large_02_maxrand_07.txt, large/large_02_maxrand_08.txt, large/large_02_maxrand_09.txt, large/large_03_maxrandp_00.txt, large/large_03_maxrandp_01.txt, large/large_03_maxrandp_02.txt, large/large_03_maxrandp_03.txt, large/large_03_maxrandp_04.txt, large/large_03_maxrandp_05.txt, large/large_03_maxrandp_06.txt, large/large_03_maxrandp_07.txt, large/large_03_maxrandp_08.txt, large/large_03_maxrandp_09.txt
Case Name Status Exec Time Memory
large/large_01_rand_00.txt AC 1 ms 256 KB
large/large_01_rand_01.txt AC 1 ms 256 KB
large/large_01_rand_02.txt AC 1 ms 256 KB
large/large_01_rand_03.txt AC 1 ms 256 KB
large/large_01_rand_04.txt AC 1 ms 256 KB
large/large_01_rand_05.txt AC 1 ms 256 KB
large/large_01_rand_06.txt AC 1 ms 256 KB
large/large_01_rand_07.txt AC 1 ms 256 KB
large/large_01_rand_08.txt AC 1 ms 256 KB
large/large_01_rand_09.txt AC 1 ms 256 KB
large/large_02_maxrand_00.txt AC 1 ms 256 KB
large/large_02_maxrand_01.txt AC 1 ms 256 KB
large/large_02_maxrand_02.txt AC 1 ms 256 KB
large/large_02_maxrand_03.txt AC 1 ms 256 KB
large/large_02_maxrand_04.txt AC 1 ms 256 KB
large/large_02_maxrand_05.txt AC 1 ms 256 KB
large/large_02_maxrand_06.txt AC 1 ms 256 KB
large/large_02_maxrand_07.txt AC 1 ms 256 KB
large/large_02_maxrand_08.txt AC 1 ms 256 KB
large/large_02_maxrand_09.txt AC 1 ms 256 KB
large/large_03_maxrandp_00.txt AC 1 ms 256 KB
large/large_03_maxrandp_01.txt AC 1 ms 256 KB
large/large_03_maxrandp_02.txt AC 1 ms 256 KB
large/large_03_maxrandp_03.txt AC 1 ms 256 KB
large/large_03_maxrandp_04.txt AC 1 ms 256 KB
large/large_03_maxrandp_05.txt AC 1 ms 256 KB
large/large_03_maxrandp_06.txt AC 1 ms 256 KB
large/large_03_maxrandp_07.txt AC 1 ms 256 KB
large/large_03_maxrandp_08.txt AC 1 ms 256 KB
large/large_03_maxrandp_09.txt AC 1 ms 256 KB
small/small_00_sample_01.txt AC 1 ms 256 KB
small/small_00_sample_02.txt AC 1 ms 256 KB
small/small_00_sample_03.txt AC 1 ms 256 KB
small/small_00_sample_04.txt AC 1 ms 256 KB
small/small_01_rand_00.txt AC 1 ms 256 KB
small/small_01_rand_01.txt AC 1 ms 256 KB
small/small_01_rand_02.txt AC 1 ms 256 KB
small/small_01_rand_03.txt AC 1 ms 256 KB
small/small_01_rand_04.txt AC 1 ms 256 KB
small/small_01_rand_05.txt AC 1 ms 256 KB
small/small_01_rand_06.txt AC 1 ms 256 KB
small/small_01_rand_07.txt AC 1 ms 256 KB
small/small_01_rand_08.txt AC 1 ms 256 KB
small/small_01_rand_09.txt AC 1 ms 256 KB
small/small_02_maxrand_00.txt AC 1 ms 256 KB
small/small_02_maxrand_01.txt AC 1 ms 256 KB
small/small_02_maxrand_02.txt AC 1 ms 256 KB
small/small_02_maxrand_03.txt AC 1 ms 256 KB
small/small_02_maxrand_04.txt AC 1 ms 256 KB
small/small_02_maxrand_05.txt AC 1 ms 256 KB
small/small_02_maxrand_06.txt AC 1 ms 256 KB
small/small_02_maxrand_07.txt AC 1 ms 256 KB
small/small_02_maxrand_08.txt AC 1 ms 256 KB
small/small_02_maxrand_09.txt AC 1 ms 256 KB
small/small_03_maxrandp_00.txt AC 1 ms 256 KB
small/small_03_maxrandp_01.txt AC 1 ms 256 KB
small/small_03_maxrandp_02.txt AC 1 ms 256 KB
small/small_03_maxrandp_03.txt AC 1 ms 256 KB
small/small_03_maxrandp_04.txt AC 1 ms 256 KB
small/small_03_maxrandp_05.txt AC 1 ms 256 KB
small/small_03_maxrandp_06.txt AC 1 ms 256 KB
small/small_03_maxrandp_07.txt AC 1 ms 256 KB
small/small_03_maxrandp_08.txt AC 1 ms 256 KB
small/small_03_maxrandp_09.txt AC 1 ms 256 KB
small/small_99_min.txt AC 1 ms 256 KB