Submission #3737396


Source Code Expand

/**
 *      purpose : ARC 13 B
 *      author  : kyomukyomupurin
 *      created : 2018-12-08 18:28:05
**/

#pragma GCC optimize ("Ofast")
#include <iostream>
#include <algorithm>
using namespace std;
using int64 = long long;
using pii = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define all(v) (v).begin(), (v).end()
#define print(x) cout << (x) << '\n'
#define PB push_back
#define EB emplace_back
#define MP make_pair
#define fi first
#define se second

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(__null);
    
    int c; cin >> c;

    int x[c], y[c], z[c];

    rep(i, c) {
        int temp[3];
        cin >> temp[0] >> temp[1] >> temp[2];
        sort(temp, temp + 3);
        x[i] = temp[0]; y[i] = temp[1]; z[i] = temp[2];
    }

    print(*max_element(x, x + c) * *max_element(y, y + c) * *max_element(z, z + c));
    
    return 0;
}

Submission Info

Submission Time
Task B - 引越しできるかな?
User kyomukyomupurin
Language C++14 (GCC 5.4.1)
Score 100
Code Size 929 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