Submission #55243860


Source Code Expand

s, t = input().split()
for w in range(1, len(s)):
    for c in range(w):
        x = ""
        for i in range(len(s)):
            if i % w == c:
                x += s[i]
        if x == t:
            print("Yes")
            exit()
print("No")

Submission Info

Submission Time
Task B - Vertical Reading
User TangentDay
Language Python (CPython 3.11.4)
Score 200
Code Size 259 Byte
Status AC
Exec Time 41 ms
Memory 8792 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 29
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, 02_corner_00.txt, 02_corner_01.txt, 02_corner_02.txt, 02_corner_03.txt, 02_corner_04.txt, 02_corner_05.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 9 ms 8724 KiB
00_sample_01.txt AC 9 ms 8664 KiB
00_sample_02.txt AC 9 ms 8564 KiB
01_random_00.txt AC 11 ms 8740 KiB
01_random_01.txt AC 11 ms 8700 KiB
01_random_02.txt AC 10 ms 8792 KiB
01_random_03.txt AC 24 ms 8560 KiB
01_random_04.txt AC 10 ms 8664 KiB
01_random_05.txt AC 10 ms 8772 KiB
01_random_06.txt AC 10 ms 8768 KiB
01_random_07.txt AC 39 ms 8596 KiB
01_random_08.txt AC 9 ms 8716 KiB
01_random_09.txt AC 40 ms 8444 KiB
01_random_10.txt AC 9 ms 8700 KiB
01_random_11.txt AC 24 ms 8780 KiB
01_random_12.txt AC 10 ms 8628 KiB
01_random_13.txt AC 40 ms 8420 KiB
01_random_14.txt AC 11 ms 8700 KiB
01_random_15.txt AC 13 ms 8512 KiB
01_random_16.txt AC 10 ms 8684 KiB
01_random_17.txt AC 10 ms 8660 KiB
01_random_18.txt AC 17 ms 8684 KiB
01_random_19.txt AC 20 ms 8788 KiB
02_corner_00.txt AC 10 ms 8672 KiB
02_corner_01.txt AC 41 ms 8504 KiB
02_corner_02.txt AC 18 ms 8716 KiB
02_corner_03.txt AC 39 ms 8604 KiB
02_corner_04.txt AC 40 ms 8540 KiB
02_corner_05.txt AC 41 ms 8520 KiB