Submission #51039815


Source Code Expand

#include <iostream>

using namespace std;

int main() {
  string S;
  cin >> S;
  bool f = false;
  string r;
  for (char i: S) {
    if (i == '|') {
      f = !f;
      continue;
    }
    if (!f) r += i;
  }
  cout << r << endl;
}

Submission Info

Submission Time
Task A - Spoiler
User NPG418
Language C++ 20 (gcc 12.2)
Score 150
Code Size 251 Byte
Status AC
Exec Time 1 ms
Memory 3672 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 150 / 150
Status
AC × 3
AC × 14
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
random_01.txt AC 1 ms 3608 KiB
random_02.txt AC 1 ms 3604 KiB
random_03.txt AC 1 ms 3444 KiB
random_04.txt AC 1 ms 3400 KiB
random_05.txt AC 1 ms 3488 KiB
random_06.txt AC 1 ms 3444 KiB
random_07.txt AC 1 ms 3604 KiB
random_08.txt AC 1 ms 3672 KiB
random_09.txt AC 1 ms 3536 KiB
random_10.txt AC 1 ms 3600 KiB
random_11.txt AC 1 ms 3476 KiB
sample_01.txt AC 1 ms 3512 KiB
sample_02.txt AC 1 ms 3480 KiB
sample_03.txt AC 1 ms 3480 KiB