General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
148179688 Practice:
RKG
1553D - 27 C++17 (GCC 7-32) Accepted 389 ms 380 KB 2022-03-03 11:46:27 2022-03-03 11:46:27
→ Source
#include <bits/stdc++.h>
using namespace std;

int main(){
	int T=1; cin>>T;
	while(T--){
		string s,t; cin>>s>>t;
		int p=t.size()-1;
		for(int i=s.size()-1;i>=0;i--)~p&&s[i]==t[p]?p--:i--;
		puts(~p?"NO":"YES");
	}
	return 0;
}
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details