Submission #8881835


Source Code Expand

#include<bits/stdc++.h>

using namespace std;

int main() {
  vector<int> l(3, 0);
  int N; cin >> N;
  while (N--) {
    vector<int> t(3);
    for (int i = 3; i--;) cin >> t[i];
    sort(t.begin(), t.end());
    for (int i = 3; i--;) l[i] = max(l[i], t[i]);
  }
  cout << l[0] * l[1] * l[2] << endl;
}

Submission Info

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