/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 2ms 540.0 KiB
#2 Wrong Answer 5ms 540.0 KiB

Code

#include<iostream>
#include<string>
using namespace std;
int main()
{
    int t;
    cin>>t;

    while(t--){
        int n;
        cin>>n;

        string s, tv ="SeriousOJ";;
        cin>>s;

        int ti=0;

        for(int i=0; i<n; i++){
            if(s[i]== tv[ti]){
                ti++;
            }
        }
        if(ti==tv.size()){
        cout<<"Yes"<<endl;
    }
    else{
        cout<<"No"<<endl;
    }
    }

}

Information

Submit By
Type
Submission
Problem
P1147 SeriousOJ Challenge
Contest
LU IUJPC : Sylhet Division 2024 Replay Contest
Language
C++17 (G++ 13.2.0)
Submit At
2024-12-10 10:34:01
Judged At
2024-12-10 10:34:01
Judged By
Score
0
Total Time
5ms
Peak Memory
540.0 KiB