Submission #799900

# Submission time Handle Problem Language Result Execution time Memory
799900 2023-08-01T07:58:16 Z NothingXD Crossing (JOI21_crossing) C++17
3 / 100
7000 ms 5484 KB
#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 time Memory Grader output
1 Correct 258 ms 792 KB Output is correct
2 Correct 278 ms 804 KB Output is correct
3 Correct 282 ms 768 KB Output is correct
4 Correct 272 ms 864 KB Output is correct
5 Correct 282 ms 2224 KB Output is correct
6 Correct 265 ms 2356 KB Output is correct
7 Correct 268 ms 2280 KB Output is correct
8 Correct 285 ms 2396 KB Output is correct
9 Correct 288 ms 2316 KB Output is correct
10 Correct 276 ms 2332 KB Output is correct
11 Correct 301 ms 2496 KB Output is correct
12 Correct 280 ms 2348 KB Output is correct
13 Correct 284 ms 2396 KB Output is correct
14 Correct 272 ms 2304 KB Output is correct
15 Correct 281 ms 2412 KB Output is correct
16 Correct 276 ms 2408 KB Output is correct
17 Correct 276 ms 2372 KB Output is correct
18 Correct 286 ms 2344 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 258 ms 792 KB Output is correct
2 Correct 278 ms 804 KB Output is correct
3 Correct 282 ms 768 KB Output is correct
4 Correct 272 ms 864 KB Output is correct
5 Correct 282 ms 2224 KB Output is correct
6 Correct 265 ms 2356 KB Output is correct
7 Correct 268 ms 2280 KB Output is correct
8 Correct 285 ms 2396 KB Output is correct
9 Correct 288 ms 2316 KB Output is correct
10 Correct 276 ms 2332 KB Output is correct
11 Correct 301 ms 2496 KB Output is correct
12 Correct 280 ms 2348 KB Output is correct
13 Correct 284 ms 2396 KB Output is correct
14 Correct 272 ms 2304 KB Output is correct
15 Correct 281 ms 2412 KB Output is correct
16 Correct 276 ms 2408 KB Output is correct
17 Correct 276 ms 2372 KB Output is correct
18 Correct 286 ms 2344 KB Output is correct
19 Correct 3418 ms 5484 KB Output is correct
20 Execution timed out 7074 ms 3236 KB Time limit exceeded
21 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 258 ms 792 KB Output is correct
2 Correct 278 ms 804 KB Output is correct
3 Correct 282 ms 768 KB Output is correct
4 Correct 272 ms 864 KB Output is correct
5 Correct 282 ms 2224 KB Output is correct
6 Correct 265 ms 2356 KB Output is correct
7 Correct 268 ms 2280 KB Output is correct
8 Correct 285 ms 2396 KB Output is correct
9 Correct 288 ms 2316 KB Output is correct
10 Correct 276 ms 2332 KB Output is correct
11 Correct 301 ms 2496 KB Output is correct
12 Correct 280 ms 2348 KB Output is correct
13 Correct 284 ms 2396 KB Output is correct
14 Correct 272 ms 2304 KB Output is correct
15 Correct 281 ms 2412 KB Output is correct
16 Correct 276 ms 2408 KB Output is correct
17 Correct 276 ms 2372 KB Output is correct
18 Correct 286 ms 2344 KB Output is correct
19 Correct 271 ms 2396 KB Output is correct
20 Correct 277 ms 2224 KB Output is correct
21 Incorrect 276 ms 2360 KB Output isn't correct
22 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 258 ms 792 KB Output is correct
2 Correct 278 ms 804 KB Output is correct
3 Correct 282 ms 768 KB Output is correct
4 Correct 272 ms 864 KB Output is correct
5 Correct 282 ms 2224 KB Output is correct
6 Correct 265 ms 2356 KB Output is correct
7 Correct 268 ms 2280 KB Output is correct
8 Correct 285 ms 2396 KB Output is correct
9 Correct 288 ms 2316 KB Output is correct
10 Correct 276 ms 2332 KB Output is correct
11 Correct 301 ms 2496 KB Output is correct
12 Correct 280 ms 2348 KB Output is correct
13 Correct 284 ms 2396 KB Output is correct
14 Correct 272 ms 2304 KB Output is correct
15 Correct 281 ms 2412 KB Output is correct
16 Correct 276 ms 2408 KB Output is correct
17 Correct 276 ms 2372 KB Output is correct
18 Correct 286 ms 2344 KB Output is correct
19 Correct 3418 ms 5484 KB Output is correct
20 Execution timed out 7074 ms 3236 KB Time limit exceeded
21 Halted 0 ms 0 KB -