Submission #75893550


Source Code Expand

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

int main() {
  int X;
  int Q;
  cin >> X >> Q;
  vector<int> L(2*Q+1,1000000001);
  L.at(0) = X;
  for(int i=0; i<Q; i++) {
    int A,B;
    cin >> A >> B;
    L.at(2*i+1) = A;
    L.at(2*i+2) = B;
    sort(L.begin(),L.end());
    cout << L.at(i+1) << endl;
  }
}

Submission Info

Submission Time
Task D - Chalkboard Median
User Kane218
Language C++23 (GCC 15.2.0)
Score 0
Code Size 330 Byte
Status TLE
Exec Time > 2000 ms
Memory 5036 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 400
Status
AC × 3
AC × 3
TLE × 22
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.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, 01_random_16.txt, 01_random_17.txt, 01_random_18.txt, 01_random_19.txt, 01_random_20.txt, 01_random_21.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 1 ms 3456 KiB
00_sample_01.txt AC 1 ms 3472 KiB
00_sample_02.txt AC 1 ms 3540 KiB
01_random_00.txt TLE > 2000 ms 4908 KiB
01_random_01.txt TLE > 2000 ms 4768 KiB
01_random_02.txt TLE > 2000 ms 4776 KiB
01_random_03.txt TLE > 2000 ms 4812 KiB
01_random_04.txt TLE > 2000 ms 4908 KiB
01_random_05.txt TLE > 2000 ms 4776 KiB
01_random_06.txt TLE > 2000 ms 4332 KiB
01_random_07.txt TLE > 2000 ms 4812 KiB
01_random_08.txt TLE > 2000 ms 4136 KiB
01_random_09.txt TLE > 2000 ms 4768 KiB
01_random_10.txt TLE > 2000 ms 3880 KiB
01_random_11.txt TLE > 2000 ms 4768 KiB
01_random_12.txt TLE > 2000 ms 4776 KiB
01_random_13.txt TLE > 2000 ms 4812 KiB
01_random_14.txt TLE > 2000 ms 4812 KiB
01_random_15.txt TLE > 2000 ms 4844 KiB
01_random_16.txt TLE > 2000 ms 4812 KiB
01_random_17.txt TLE > 2000 ms 4872 KiB
01_random_18.txt TLE > 2000 ms 5036 KiB
01_random_19.txt TLE > 2000 ms 5036 KiB
01_random_20.txt TLE > 2000 ms 4812 KiB
01_random_21.txt TLE > 2000 ms 4684 KiB