Submission #799900

#TimeUsernameProblemLanguageResultExecution timeMemory
799900NothingXDCrossing (JOI21_crossing)C++17
3 / 100
7074 ms5484 KiB
#include<bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;

void debug_out(){cerr<<endl;}
template<typename Head, typename... Tail>
void debug_out(Head H, Tail... T){
	cerr << H << ' ';
	debug_out(T...);
}

#define debug(...) cerr << "(" << #__VA_ARGS__ << "): ", debug_out(__VA_ARGS__)
#define F first
#define S second
#define all(x) x.begin(), x.end()
#define MP(x, y) make_pair(x, y)

const int maxn = 2e5 + 10;
const int alpha = 27;

int n, q;

int main(){

	string s[3];

	cin >> n >> s[0] >> s[1] >> s[2];
	cin >> q;
	string t;
	cin >> t;
	cout << (s[0] == t? "Yes\n": "No\n");
	while(q--){
		int l, r; char c; cin >> l >> r >> c;
		for (int i = l-1; i <= r-1; i++) t[i] = c;
		cout << (s[0] == t? "Yes\n": "No\n");
	}

	return 0;
}

#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...