General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
146262418 Practice:
valero97
1553D - 27 Python 3 Accepted 889 ms 560 KB 2022-02-13 20:11:18 2022-02-13 20:11:26
→ Source
for _ in range(int(input())):
    s = input();t = input();i = len(s)-1;j = len(t)-1
    while i>=0 and j>=0:
        if s[i]==t[j]:i-=1;j-=1
        else:i-=2
    print("YES") if j == -1 else print("NO")
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details