Submission #52324162


Source Code Expand

#ABC349_20240413_C
s=input()
S=list(s.upper())
#print(S)
T=list(input())
C1=0
C2=0
C3=0
for i in range(len(S)):
    if(C1==0):
        if(T[0]==S[i]):
            C1=1
    elif(C1==1 and C2==0):
        if(T[1]==S[i]):
            C2=1
            if(T[2]=="X"):
                C3=1
    elif(C1==1 and C2==1):
        if(T[2]==S[i]):
            C3=1
    if(C3==1):
        exit(print("Yes"))
print("No")

Submission Info

Submission Time
Task C - Airport Code
User Konini
Language Python (PyPy 3.10-v7.3.12)
Score 300
Code Size 429 Byte
Status AC
Exec Time 59 ms
Memory 82756 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 48
Set Name Test Cases
Sample 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt
All 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.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, 01_random_22.txt, 01_random_23.txt, 01_random_24.txt, 01_random_25.txt, 01_random_26.txt, 01_random_27.txt, 01_random_28.txt, 01_random_29.txt, 01_random_30.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt, 02_handmade_04.txt, 02_handmade_05.txt, 02_handmade_06.txt, 02_handmade_07.txt, 02_handmade_08.txt, 02_handmade_09.txt, 02_handmade_10.txt, 02_handmade_11.txt, 02_handmade_12.txt, 02_handmade_13.txt, 02_handmade_14.txt, 02_handmade_15.txt
Case Name Status Exec Time Memory
00_sample_01.txt AC 53 ms 76264 KiB
00_sample_02.txt AC 54 ms 76484 KiB
00_sample_03.txt AC 53 ms 76608 KiB
01_random_01.txt AC 53 ms 76376 KiB
01_random_02.txt AC 53 ms 76432 KiB
01_random_03.txt AC 54 ms 76684 KiB
01_random_04.txt AC 53 ms 76396 KiB
01_random_05.txt AC 53 ms 76632 KiB
01_random_06.txt AC 53 ms 76384 KiB
01_random_07.txt AC 53 ms 76632 KiB
01_random_08.txt AC 53 ms 76472 KiB
01_random_09.txt AC 53 ms 76408 KiB
01_random_10.txt AC 54 ms 76500 KiB
01_random_11.txt AC 53 ms 76476 KiB
01_random_12.txt AC 53 ms 76780 KiB
01_random_13.txt AC 54 ms 76788 KiB
01_random_14.txt AC 54 ms 76364 KiB
01_random_15.txt AC 55 ms 76448 KiB
01_random_16.txt AC 54 ms 76468 KiB
01_random_17.txt AC 55 ms 76424 KiB
01_random_18.txt AC 53 ms 76404 KiB
01_random_19.txt AC 53 ms 76504 KiB
01_random_20.txt AC 53 ms 76308 KiB
01_random_21.txt AC 53 ms 76440 KiB
01_random_22.txt AC 53 ms 76440 KiB
01_random_23.txt AC 53 ms 76676 KiB
01_random_24.txt AC 53 ms 76608 KiB
01_random_25.txt AC 53 ms 76404 KiB
01_random_26.txt AC 54 ms 76556 KiB
01_random_27.txt AC 54 ms 77388 KiB
01_random_28.txt AC 53 ms 77136 KiB
01_random_29.txt AC 54 ms 77856 KiB
01_random_30.txt AC 54 ms 77544 KiB
02_handmade_01.txt AC 59 ms 81568 KiB
02_handmade_02.txt AC 59 ms 82428 KiB
02_handmade_03.txt AC 57 ms 82528 KiB
02_handmade_04.txt AC 57 ms 82656 KiB
02_handmade_05.txt AC 58 ms 80868 KiB
02_handmade_06.txt AC 59 ms 82756 KiB
02_handmade_07.txt AC 57 ms 81336 KiB
02_handmade_08.txt AC 57 ms 82332 KiB
02_handmade_09.txt AC 58 ms 82440 KiB
02_handmade_10.txt AC 58 ms 82652 KiB
02_handmade_11.txt AC 58 ms 82548 KiB
02_handmade_12.txt AC 53 ms 76688 KiB
02_handmade_13.txt AC 53 ms 76524 KiB
02_handmade_14.txt AC 56 ms 80952 KiB
02_handmade_15.txt AC 56 ms 81456 KiB