#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 |
1 |
Correct |
296 ms |
2264 KB |
Output is correct |
2 |
Correct |
332 ms |
2428 KB |
Output is correct |
3 |
Correct |
355 ms |
2288 KB |
Output is correct |
4 |
Correct |
322 ms |
2252 KB |
Output is correct |
5 |
Correct |
318 ms |
2216 KB |
Output is correct |
6 |
Correct |
330 ms |
2264 KB |
Output is correct |
7 |
Correct |
376 ms |
2284 KB |
Output is correct |
8 |
Correct |
328 ms |
2356 KB |
Output is correct |
9 |
Correct |
318 ms |
2352 KB |
Output is correct |
10 |
Correct |
331 ms |
2528 KB |
Output is correct |
11 |
Correct |
316 ms |
2352 KB |
Output is correct |
12 |
Correct |
335 ms |
2416 KB |
Output is correct |
13 |
Correct |
327 ms |
2368 KB |
Output is correct |
14 |
Correct |
369 ms |
2304 KB |
Output is correct |
15 |
Correct |
322 ms |
2308 KB |
Output is correct |
16 |
Correct |
356 ms |
2692 KB |
Output is correct |
17 |
Correct |
335 ms |
2356 KB |
Output is correct |
18 |
Correct |
362 ms |
2508 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
296 ms |
2264 KB |
Output is correct |
2 |
Correct |
332 ms |
2428 KB |
Output is correct |
3 |
Correct |
355 ms |
2288 KB |
Output is correct |
4 |
Correct |
322 ms |
2252 KB |
Output is correct |
5 |
Correct |
318 ms |
2216 KB |
Output is correct |
6 |
Correct |
330 ms |
2264 KB |
Output is correct |
7 |
Correct |
376 ms |
2284 KB |
Output is correct |
8 |
Correct |
328 ms |
2356 KB |
Output is correct |
9 |
Correct |
318 ms |
2352 KB |
Output is correct |
10 |
Correct |
331 ms |
2528 KB |
Output is correct |
11 |
Correct |
316 ms |
2352 KB |
Output is correct |
12 |
Correct |
335 ms |
2416 KB |
Output is correct |
13 |
Correct |
327 ms |
2368 KB |
Output is correct |
14 |
Correct |
369 ms |
2304 KB |
Output is correct |
15 |
Correct |
322 ms |
2308 KB |
Output is correct |
16 |
Correct |
356 ms |
2692 KB |
Output is correct |
17 |
Correct |
335 ms |
2356 KB |
Output is correct |
18 |
Correct |
362 ms |
2508 KB |
Output is correct |
19 |
Execution timed out |
7005 ms |
4652 KB |
Time limit exceeded |
20 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
296 ms |
2264 KB |
Output is correct |
2 |
Correct |
332 ms |
2428 KB |
Output is correct |
3 |
Correct |
355 ms |
2288 KB |
Output is correct |
4 |
Correct |
322 ms |
2252 KB |
Output is correct |
5 |
Correct |
318 ms |
2216 KB |
Output is correct |
6 |
Correct |
330 ms |
2264 KB |
Output is correct |
7 |
Correct |
376 ms |
2284 KB |
Output is correct |
8 |
Correct |
328 ms |
2356 KB |
Output is correct |
9 |
Correct |
318 ms |
2352 KB |
Output is correct |
10 |
Correct |
331 ms |
2528 KB |
Output is correct |
11 |
Correct |
316 ms |
2352 KB |
Output is correct |
12 |
Correct |
335 ms |
2416 KB |
Output is correct |
13 |
Correct |
327 ms |
2368 KB |
Output is correct |
14 |
Correct |
369 ms |
2304 KB |
Output is correct |
15 |
Correct |
322 ms |
2308 KB |
Output is correct |
16 |
Correct |
356 ms |
2692 KB |
Output is correct |
17 |
Correct |
335 ms |
2356 KB |
Output is correct |
18 |
Correct |
362 ms |
2508 KB |
Output is correct |
19 |
Correct |
311 ms |
2324 KB |
Output is correct |
20 |
Correct |
377 ms |
2232 KB |
Output is correct |
21 |
Incorrect |
319 ms |
2380 KB |
Output isn't correct |
22 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
296 ms |
2264 KB |
Output is correct |
2 |
Correct |
332 ms |
2428 KB |
Output is correct |
3 |
Correct |
355 ms |
2288 KB |
Output is correct |
4 |
Correct |
322 ms |
2252 KB |
Output is correct |
5 |
Correct |
318 ms |
2216 KB |
Output is correct |
6 |
Correct |
330 ms |
2264 KB |
Output is correct |
7 |
Correct |
376 ms |
2284 KB |
Output is correct |
8 |
Correct |
328 ms |
2356 KB |
Output is correct |
9 |
Correct |
318 ms |
2352 KB |
Output is correct |
10 |
Correct |
331 ms |
2528 KB |
Output is correct |
11 |
Correct |
316 ms |
2352 KB |
Output is correct |
12 |
Correct |
335 ms |
2416 KB |
Output is correct |
13 |
Correct |
327 ms |
2368 KB |
Output is correct |
14 |
Correct |
369 ms |
2304 KB |
Output is correct |
15 |
Correct |
322 ms |
2308 KB |
Output is correct |
16 |
Correct |
356 ms |
2692 KB |
Output is correct |
17 |
Correct |
335 ms |
2356 KB |
Output is correct |
18 |
Correct |
362 ms |
2508 KB |
Output is correct |
19 |
Execution timed out |
7005 ms |
4652 KB |
Time limit exceeded |
20 |
Halted |
0 ms |
0 KB |
- |