This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <iostream>
using namespace std;
string s1,s2,s3;
int main(){
int n; cin >> n;
cin >> s1 >> s2 >> s3;
int q; cin >> q;
string ej; cin >> ej;
if (ej == s1){
cout << "Yes" << endl;
} else{
cout << "No" << endl;
}
for (int i = 0; i < q; ++i){
int l, r; cin >> l >> r;
char c; cin >> c;
for (int i = l-1; i < r; ++i){
ej[i] = c;
}
if (ej == s1){
cout << "Yes" << endl;
} else{
cout << "No" << endl;
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |