Submission #58189798


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
using ll = long long;

#define rep(i, x) for (int i = 0; i < (x); i++)

int main()
{
  int N;
  cin >> N;
  vector<int> A(N), B(N);
  rep(i, N) cin >> A[i];
  rep(i, N) cin >> B[i];

  sort(A.begin(), A.end());
  sort(B.begin(), B.end());

  cout << A[N - 1] + B[N - 1] << endl;
  return 0;
}

Submission Info

Submission Time
Task C - Max Ai+Bj
User ryoh1004
Language C++ 23 (gcc 12.2)
Score 250
Code Size 338 Byte
Status AC
Exec Time 320 ms
Memory 7220 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 250 / 250
Status
AC × 2
AC × 22
Set Name Test Cases
Sample 00_sample_01.txt, 00_sample_02.txt
All 00_sample_01.txt, 00_sample_02.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt, 02_handmade_04.txt, 02_handmade_05.txt
Case Name Status Exec Time Memory
00_sample_01.txt AC 1 ms 3488 KiB
00_sample_02.txt AC 1 ms 3564 KiB
01_random_01.txt AC 297 ms 6800 KiB
01_random_02.txt AC 318 ms 7012 KiB
01_random_03.txt AC 90 ms 4216 KiB
01_random_04.txt AC 318 ms 7124 KiB
01_random_05.txt AC 108 ms 4440 KiB
01_random_06.txt AC 318 ms 6988 KiB
01_random_07.txt AC 123 ms 4772 KiB
01_random_08.txt AC 320 ms 7056 KiB
01_random_09.txt AC 248 ms 6324 KiB
01_random_10.txt AC 318 ms 6988 KiB
01_random_11.txt AC 286 ms 6492 KiB
01_random_12.txt AC 318 ms 7180 KiB
01_random_13.txt AC 209 ms 5764 KiB
01_random_14.txt AC 318 ms 7012 KiB
01_random_15.txt AC 171 ms 5280 KiB
02_handmade_01.txt AC 1 ms 3560 KiB
02_handmade_02.txt AC 268 ms 7220 KiB
02_handmade_03.txt AC 289 ms 7096 KiB
02_handmade_04.txt AC 278 ms 7060 KiB
02_handmade_05.txt AC 277 ms 7072 KiB