Submission #53567379
Source Code Expand
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, x) for (int i = 0; i < (x); i++) int main() { string S, T; cin >> S >> T; int Si = 0; for (int i = 0; i < T.size(); i++) { if (S[Si] == T[i]) { if (Si != 0) { cout << " "; } cout << i + 1; Si++; } } cout << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - Typing |
User | ryoh1004 |
Language | C++ 23 (gcc 12.2) |
Score | 200 |
Code Size | 377 Byte |
Status | AC |
Exec Time | 20 ms |
Memory | 3872 KiB |
Compile Error
Main.cpp: In function ‘int main()’: Main.cpp:12:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 12 | for (int i = 0; i < T.size(); i++) | ~~^~~~~~~~~~
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
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 KiB |
sample01.txt | AC | 1 ms | 3484 KiB |
sample02.txt | AC | 1 ms | 3464 KiB |
testcase00.txt | AC | 1 ms | 3500 KiB |
testcase01.txt | AC | 12 ms | 3580 KiB |
testcase02.txt | AC | 17 ms | 3776 KiB |
testcase03.txt | AC | 20 ms | 3796 KiB |
testcase04.txt | AC | 13 ms | 3676 KiB |
testcase05.txt | AC | 4 ms | 3704 KiB |
testcase06.txt | AC | 6 ms | 3764 KiB |
testcase07.txt | AC | 6 ms | 3772 KiB |
testcase08.txt | AC | 14 ms | 3772 KiB |
testcase09.txt | AC | 3 ms | 3660 KiB |
testcase10.txt | AC | 2 ms | 3592 KiB |
testcase11.txt | AC | 2 ms | 3660 KiB |
testcase12.txt | AC | 3 ms | 3656 KiB |
testcase13.txt | AC | 3 ms | 3612 KiB |
testcase14.txt | AC | 12 ms | 3704 KiB |
testcase15.txt | AC | 13 ms | 3648 KiB |
testcase16.txt | AC | 16 ms | 3872 KiB |
testcase17.txt | AC | 11 ms | 3848 KiB |
testcase18.txt | AC | 12 ms | 3684 KiB |