Submission #53097144


Source Code Expand

Copy
#include<iostream>
using namespace std;
int main(){
string S,T;
cin>>S>>T;
int k=0;
for(int i=0;i<(int)T.size();i++){
if(T[i]==S[k]){
cout<<i+1<<" ";
k++;
}
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#include<iostream>
using namespace std;
int main(){
  string S,T;
  cin>>S>>T;
  int k=0;
  for(int i=0;i<(int)T.size();i++){
    if(T[i]==S[k]){
      cout<<i+1<<" ";
      k++;
    }
  }
}

Submission Info

Submission Time
Task B - Typing
User kei1231212
Language C++ 20 (gcc 12.2)
Score 200
Code Size 202 Byte
Status AC
Exec Time 17 ms
Memory 3944 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 22
Set Name Test Cases
Sample sample00.txt, sample01.txt, sample02.txt
All sample00.txt, sample01.txt, sample02.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt, testcase08.txt, testcase09.txt, testcase10.txt, testcase11.txt, testcase12.txt, testcase13.txt, testcase14.txt, testcase15.txt, testcase16.txt, testcase17.txt, testcase18.txt
Case Name Status Exec Time Memory
sample00.txt AC 1 ms 3532 KB
sample01.txt AC 1 ms 3484 KB
sample02.txt AC 1 ms 3440 KB
testcase00.txt AC 1 ms 3672 KB
testcase01.txt AC 12 ms 3684 KB
testcase02.txt AC 17 ms 3784 KB
testcase03.txt AC 17 ms 3804 KB
testcase04.txt AC 13 ms 3688 KB
testcase05.txt AC 4 ms 3660 KB
testcase06.txt AC 7 ms 3760 KB
testcase07.txt AC 6 ms 3772 KB
testcase08.txt AC 14 ms 3804 KB
testcase09.txt AC 4 ms 3800 KB
testcase10.txt AC 2 ms 3668 KB
testcase11.txt AC 3 ms 3592 KB
testcase12.txt AC 3 ms 3612 KB
testcase13.txt AC 3 ms 3656 KB
testcase14.txt AC 13 ms 3624 KB
testcase15.txt AC 13 ms 3652 KB
testcase16.txt AC 16 ms 3944 KB
testcase17.txt AC 12 ms 3884 KB
testcase18.txt AC 13 ms 3672 KB


2025-04-03 (Thu)
20:26:18 +00:00