| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 119631 | 柯昊阳 | 判断子序列 | C++ | Accepted | 100 | 0 MS | 252 KB | 329 | 2024-01-09 20:13:35 |
#include <bits/stdc++.h> using namespace std; int main(){ string s,t; cin>>s>>t; int cur = 0; for(int i = 0;i<t.size();i++){ if(cur==s.size()){ cout<<"true"<<endl; return 0; } if(t[i]==s[cur]) cur++; } if(cur==s.size()){ cout<<"true"<<endl; return 0; } cout<<"false"<<endl; return 0; }