Submission #51028396


Source Code Expand

#ABC344_20240309_A
S=list(input())
ans=""
flg=0
for i in S:
    if(i=="|"):
        if(flg):
            flg=0
        else:
            flg=1
    elif(flg==0):
        ans+=i
print(ans)

Submission Info

Submission Time
Task A - Spoiler
User Konini
Language Python (Cython 0.29.34)
Score 150
Code Size 202 Byte
Status AC
Exec Time 10 ms
Memory 8908 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 9 ms 8828 KiB
random_02.txt AC 10 ms 8800 KiB
random_03.txt AC 10 ms 8828 KiB
random_04.txt AC 9 ms 8860 KiB
random_05.txt AC 9 ms 8868 KiB
random_06.txt AC 9 ms 8832 KiB
random_07.txt AC 9 ms 8800 KiB
random_08.txt AC 9 ms 8860 KiB
random_09.txt AC 9 ms 8836 KiB
random_10.txt AC 9 ms 8856 KiB
random_11.txt AC 10 ms 8868 KiB
sample_01.txt AC 9 ms 8908 KiB
sample_02.txt AC 9 ms 8804 KiB
sample_03.txt AC 10 ms 8796 KiB