Submission #619833

#TimeUsernameProblemLanguageResultExecution timeMemory
619833gonzakia29Crossing (JOI21_crossing)C++17
3 / 100
7005 ms4652 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...