#include<bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define in insert
#define all(x) x.begin(),x.end()
#define pb push_back
#define eb emplace_back
#define ff first
#define ss second
// #define int long long
typedef long long ll;
typedef vector<int> vi;
typedef set<int> si;
typedef multiset<int> msi;
typedef pair<int, int> pii;
typedef vector<pii> vpii;
template<typename T, typename U>
ostream & operator << (ostream &out, const pair<T, U> &c) {
out << c.first << ' ' << c.second;
return out;
}
template<typename T>
ostream & operator << (ostream &out, vector<T> &v) {
const int sz = v.size();
for (int i = 0; i < sz; i++) {
if (i) out << ' ';
out << v[i];
}
return out;
}
template<typename T>
istream & operator >> (istream &in, vector<T> &v) {
for (T &x : v) in >> x;
return in;
}
template<typename T>
void mxx(T &a, T b){if(b > a) a = b;}
template<typename T>
void mnn(T &a, T b){if(b < a) a = b;}
const int mxn = 1 << 14;
vector<int> g[mxn];
map<int, int> gg;
int n, m, k, S;
bool is(int x, int bit) {
return (x & (1 << bit)) > 0;
}
void build(int now, int ans, int bit) {
if(bit - 2 >= 0 && !is(now, bit - 2)) return;
if(bit == n) {
if(now == (1 << n) - 1) g[S].pb(ans);
return;
}
// 1 **
// *
if(bit - 1 >= 0 && !is(now, bit) && !is(ans, bit) && !is(ans, bit - 1)) {
build(now ^ (1 << bit), ans ^ (1 << bit) ^ (1 << (bit - 1)), bit + 1);
}
// 2 **
// *
if(bit + 1 < n && !is(now, bit) && !is(ans, bit) && !is(ans, bit + 1)) {
build(now ^ (1 << bit), ans ^ (1 << bit) ^ (1 << (bit + 1)), bit + 1);
}
// 3 *
// **
if(bit - 1 >= 0 && !is(now, bit - 1) && !is(now, bit) && !is(ans, bit - 1)) {
build(now ^ (1 << bit) ^ (1 << (bit - 1)), ans ^ (1 << (bit - 1)), bit + 1);
}
// 4 *
// **
if(bit - 1 >= 0 && !is(now, bit - 1) && !is(now, bit) && !is(ans, bit)) {
build(now ^ (1 << bit) ^ (1 << (bit - 1)), ans ^ (1 << bit), bit + 1);
}
// 5
build(now, ans, bit + 1);
}
vector<vector<int>> get(vector<vector<int>> &a, vector<vector<int>> &b) {
vector<vector<int>> ret(1 << n, vector<int>(1 << n));
for(int k = 0; k < (1 << n); k++) {
for(int i = 0; i < (1 << n); i++) {
for(int j = 0; j < (1 << n); j++) {
if(a[i][k] && b[k][j]) ret[i][j] = 1;
}
}
}
return ret;
}
vector<int> solve(vector<int> &prdp, int len, int pp) {
vector<vector<int>> can(1 << n, vector<int>(1 << n)), tmp(1 << n, vector<int>(1 << n));
for(int i = 0; i < (1 << n); i++) {
for(int x : g[i]) {
tmp[i][x] = 1;
}
}
for(int i = 0; i < (1 << n); i++) {
can[i][i] = 1;
}
for(; len; len >>= 1) {
if(len & 1) can = get(can, tmp);
tmp = get(tmp, tmp);
}
vector<int> ret(1 << n);
for(int i = 0; i < (1 << n); i++) {
if(!prdp[i]) continue;
for(int j = 0; j < (1 << n); j++) {
if(j & pp) continue;
if(can[i][j]) ret[j | pp] = 1;
}
}
return ret;
}
void go() {
cin >> n >> m >> k;
for(int i = 0; i < k; i++) {
int x, y; cin >> x >> y;
gg[y] |= (1 << (x - 1));
}
for(int i = 0; i < (1 << n); i++) {
S = i;
build(i, 0, 0);
sort(all(g[S]));
g[S].erase(unique(all(g[S])), g[S].end());
}
int ls = 0;
vector<int> dp(1 << n);
dp[(1 << n) - 1] = 1;
gg[m + 1] = (1 << n) - 1;
if(k == 0) {
if(n % 6 == 0) {
if(m >= 2) cout << "YES\n";
else cout << "NO\n";
} else if(n % 2 == 0) {
if(m % 3 == 0) cout << "YES\n";
else cout << "NO\n";
} else if(n == 3) {
if(m % 2 == 0) cout << "YES\n";
else cout << "NO\n";
} else if(n == 9) {
if(m != 1 && m != 3) cout << "YES\n";
else cout << "NO\n";
} else {
if(m % 3 == 0 && m >= 6) cout << "YES\n";
else cout << "NO\n";
}
return;
}
if(n <= 6) {
for(auto it : gg) {
dp = solve(dp, it.ff - ls, it.ss);
ls = it.ff;
}
if(dp[(1 << n) - 1]) cout << "YES\n";
else cout << "NO\n";
return;
}
vector<pair<int, int>> v;
for(auto it : gg) {
if(it.ff == m + 1) continue;
v.eb(it.ff, it.ss);
}
int l = 0;
for(int i = 1; i <= m; i++) {
int nxt = m, msk = 0;
if(l < v.size()) nxt = v[l].ff;
int kk = (nxt - i - 2) / 12;
if(kk >= 0) i += kk * 12;
if(l < v.size() && v[l].ff == i) {
msk = v[l++].ss;
}
vector<int> nwdp(1 << n);
for(int j = 0; j < (1 << n); j++) {
if(!dp[j]) continue;
for(int x : g[j]) {
if(x & msk) continue;
nwdp[x | msk] = 1;
}
}
swap(nwdp, dp);
}
if(dp[(1 << n) - 1]) cout << "YES\n";
else cout << "NO\n";
}
signed main() {
// #ifndef ONO
// freopen("file.in", "r", stdin);
// freopen("file.out", "w", stdout);
// #endif
fast;
int t = 1;
// cin >> t;
while(t--) {
go();
}
return 0;
}
Compilation message
ltrominoes.cpp: In function 'void go()':
ltrominoes.cpp:177:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
177 | if(l < v.size()) nxt = v[l].ff;
| ~~^~~~~~~~~~
ltrominoes.cpp:180:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
180 | if(l < v.size() && v[l].ff == i) {
| ~~^~~~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
596 KB |
Output is correct |
2 |
Correct |
1 ms |
596 KB |
Output is correct |
3 |
Correct |
1 ms |
596 KB |
Output is correct |
4 |
Correct |
4 ms |
596 KB |
Output is correct |
5 |
Correct |
4 ms |
596 KB |
Output is correct |
6 |
Correct |
23 ms |
724 KB |
Output is correct |
7 |
Correct |
1 ms |
596 KB |
Output is correct |
8 |
Correct |
7 ms |
1236 KB |
Output is correct |
9 |
Correct |
3 ms |
852 KB |
Output is correct |
10 |
Correct |
1 ms |
724 KB |
Output is correct |
11 |
Correct |
7 ms |
1300 KB |
Output is correct |
12 |
Correct |
2 ms |
724 KB |
Output is correct |
13 |
Correct |
2 ms |
596 KB |
Output is correct |
14 |
Correct |
1 ms |
596 KB |
Output is correct |
15 |
Correct |
8 ms |
1236 KB |
Output is correct |
16 |
Correct |
105 ms |
2288 KB |
Output is correct |
17 |
Correct |
3 ms |
724 KB |
Output is correct |
18 |
Correct |
34 ms |
1284 KB |
Output is correct |
19 |
Correct |
1 ms |
724 KB |
Output is correct |
20 |
Correct |
70 ms |
2340 KB |
Output is correct |
21 |
Correct |
30 ms |
1236 KB |
Output is correct |
22 |
Correct |
5 ms |
724 KB |
Output is correct |
23 |
Correct |
1 ms |
596 KB |
Output is correct |
24 |
Correct |
7 ms |
720 KB |
Output is correct |
25 |
Correct |
35 ms |
2336 KB |
Output is correct |
26 |
Correct |
47 ms |
2320 KB |
Output is correct |
27 |
Correct |
8 ms |
724 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
596 KB |
Output is correct |
2 |
Correct |
1 ms |
596 KB |
Output is correct |
3 |
Correct |
0 ms |
596 KB |
Output is correct |
4 |
Correct |
0 ms |
596 KB |
Output is correct |
5 |
Correct |
7 ms |
1236 KB |
Output is correct |
6 |
Correct |
3 ms |
852 KB |
Output is correct |
7 |
Correct |
1 ms |
724 KB |
Output is correct |
8 |
Correct |
1 ms |
596 KB |
Output is correct |
9 |
Correct |
0 ms |
596 KB |
Output is correct |
10 |
Correct |
1 ms |
596 KB |
Output is correct |
11 |
Correct |
1 ms |
596 KB |
Output is correct |
12 |
Correct |
1 ms |
596 KB |
Output is correct |
13 |
Correct |
0 ms |
596 KB |
Output is correct |
14 |
Correct |
0 ms |
596 KB |
Output is correct |
15 |
Correct |
1 ms |
596 KB |
Output is correct |
16 |
Correct |
1 ms |
596 KB |
Output is correct |
17 |
Correct |
0 ms |
596 KB |
Output is correct |
18 |
Correct |
17 ms |
2244 KB |
Output is correct |
19 |
Correct |
17 ms |
2264 KB |
Output is correct |
20 |
Correct |
0 ms |
596 KB |
Output is correct |
21 |
Correct |
1 ms |
596 KB |
Output is correct |
22 |
Correct |
1 ms |
724 KB |
Output is correct |
23 |
Correct |
1 ms |
724 KB |
Output is correct |
24 |
Correct |
1 ms |
724 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
596 KB |
Output is correct |
2 |
Correct |
0 ms |
596 KB |
Output is correct |
3 |
Correct |
0 ms |
596 KB |
Output is correct |
4 |
Correct |
1 ms |
596 KB |
Output is correct |
5 |
Correct |
0 ms |
596 KB |
Output is correct |
6 |
Correct |
0 ms |
596 KB |
Output is correct |
7 |
Correct |
0 ms |
596 KB |
Output is correct |
8 |
Correct |
0 ms |
596 KB |
Output is correct |
9 |
Correct |
1 ms |
596 KB |
Output is correct |
10 |
Correct |
1 ms |
596 KB |
Output is correct |
11 |
Correct |
1 ms |
596 KB |
Output is correct |
12 |
Correct |
1 ms |
596 KB |
Output is correct |
13 |
Correct |
1 ms |
596 KB |
Output is correct |
14 |
Correct |
1 ms |
596 KB |
Output is correct |
15 |
Correct |
1 ms |
596 KB |
Output is correct |
16 |
Correct |
1 ms |
596 KB |
Output is correct |
17 |
Correct |
5 ms |
596 KB |
Output is correct |
18 |
Correct |
1 ms |
596 KB |
Output is correct |
19 |
Correct |
0 ms |
596 KB |
Output is correct |
20 |
Correct |
6 ms |
596 KB |
Output is correct |
21 |
Correct |
0 ms |
596 KB |
Output is correct |
22 |
Correct |
1 ms |
596 KB |
Output is correct |
23 |
Correct |
1 ms |
596 KB |
Output is correct |
24 |
Correct |
1 ms |
596 KB |
Output is correct |
25 |
Correct |
1 ms |
596 KB |
Output is correct |
26 |
Correct |
3 ms |
596 KB |
Output is correct |
27 |
Correct |
1 ms |
596 KB |
Output is correct |
28 |
Correct |
0 ms |
596 KB |
Output is correct |
29 |
Correct |
1 ms |
596 KB |
Output is correct |
30 |
Correct |
2 ms |
596 KB |
Output is correct |
31 |
Correct |
2 ms |
596 KB |
Output is correct |
32 |
Correct |
1 ms |
596 KB |
Output is correct |
33 |
Correct |
6 ms |
724 KB |
Output is correct |
34 |
Correct |
3 ms |
596 KB |
Output is correct |
35 |
Correct |
9 ms |
596 KB |
Output is correct |
36 |
Correct |
2 ms |
596 KB |
Output is correct |
37 |
Correct |
2 ms |
724 KB |
Output is correct |
38 |
Correct |
2 ms |
596 KB |
Output is correct |
39 |
Correct |
2 ms |
596 KB |
Output is correct |
40 |
Correct |
6 ms |
720 KB |
Output is correct |
41 |
Correct |
4 ms |
596 KB |
Output is correct |
42 |
Correct |
1 ms |
596 KB |
Output is correct |
43 |
Correct |
3 ms |
596 KB |
Output is correct |
44 |
Correct |
1 ms |
724 KB |
Output is correct |
45 |
Correct |
3 ms |
596 KB |
Output is correct |
46 |
Correct |
1 ms |
596 KB |
Output is correct |
47 |
Correct |
2 ms |
724 KB |
Output is correct |
48 |
Correct |
2 ms |
596 KB |
Output is correct |
49 |
Correct |
1 ms |
596 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
5 ms |
596 KB |
Output is correct |
2 |
Correct |
5 ms |
596 KB |
Output is correct |
3 |
Correct |
212 ms |
724 KB |
Output is correct |
4 |
Correct |
2 ms |
596 KB |
Output is correct |
5 |
Correct |
9 ms |
764 KB |
Output is correct |
6 |
Correct |
3 ms |
596 KB |
Output is correct |
7 |
Correct |
1 ms |
596 KB |
Output is correct |
8 |
Correct |
1 ms |
596 KB |
Output is correct |
9 |
Correct |
5 ms |
724 KB |
Output is correct |
10 |
Correct |
45 ms |
596 KB |
Output is correct |
11 |
Correct |
264 ms |
724 KB |
Output is correct |
12 |
Correct |
1998 ms |
760 KB |
Output is correct |
13 |
Correct |
43 ms |
704 KB |
Output is correct |
14 |
Correct |
40 ms |
596 KB |
Output is correct |
15 |
Correct |
238 ms |
724 KB |
Output is correct |
16 |
Correct |
1290 ms |
848 KB |
Output is correct |
17 |
Correct |
226 ms |
724 KB |
Output is correct |
18 |
Correct |
219 ms |
724 KB |
Output is correct |
19 |
Correct |
1055 ms |
760 KB |
Output is correct |
20 |
Correct |
429 ms |
756 KB |
Output is correct |
21 |
Correct |
68 ms |
724 KB |
Output is correct |
22 |
Correct |
381 ms |
756 KB |
Output is correct |
23 |
Correct |
22 ms |
724 KB |
Output is correct |
24 |
Correct |
221 ms |
724 KB |
Output is correct |
25 |
Correct |
1314 ms |
760 KB |
Output is correct |
26 |
Correct |
35 ms |
596 KB |
Output is correct |
27 |
Correct |
189 ms |
724 KB |
Output is correct |
28 |
Correct |
60 ms |
724 KB |
Output is correct |
29 |
Correct |
163 ms |
724 KB |
Output is correct |
30 |
Correct |
90 ms |
704 KB |
Output is correct |
31 |
Correct |
236 ms |
724 KB |
Output is correct |
32 |
Correct |
1303 ms |
752 KB |
Output is correct |
33 |
Correct |
1330 ms |
760 KB |
Output is correct |
34 |
Correct |
212 ms |
752 KB |
Output is correct |
35 |
Correct |
250 ms |
756 KB |
Output is correct |
36 |
Correct |
38 ms |
724 KB |
Output is correct |
37 |
Correct |
262 ms |
764 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
596 KB |
Output is correct |
2 |
Correct |
1 ms |
596 KB |
Output is correct |
3 |
Correct |
1 ms |
596 KB |
Output is correct |
4 |
Correct |
43 ms |
1236 KB |
Output is correct |
5 |
Correct |
16 ms |
852 KB |
Output is correct |
6 |
Correct |
17 ms |
852 KB |
Output is correct |
7 |
Correct |
5 ms |
784 KB |
Output is correct |
8 |
Correct |
6 ms |
724 KB |
Output is correct |
9 |
Correct |
2 ms |
724 KB |
Output is correct |
10 |
Correct |
3 ms |
724 KB |
Output is correct |
11 |
Correct |
7 ms |
1196 KB |
Output is correct |
12 |
Correct |
3 ms |
852 KB |
Output is correct |
13 |
Correct |
1 ms |
724 KB |
Output is correct |
14 |
Correct |
7 ms |
1236 KB |
Output is correct |
15 |
Correct |
1 ms |
724 KB |
Output is correct |
16 |
Correct |
2 ms |
596 KB |
Output is correct |
17 |
Correct |
3 ms |
724 KB |
Output is correct |
18 |
Correct |
2 ms |
724 KB |
Output is correct |
19 |
Correct |
2 ms |
724 KB |
Output is correct |
20 |
Correct |
52 ms |
1236 KB |
Output is correct |
21 |
Correct |
22 ms |
960 KB |
Output is correct |
22 |
Correct |
1 ms |
732 KB |
Output is correct |
23 |
Correct |
7 ms |
724 KB |
Output is correct |
24 |
Correct |
213 ms |
2356 KB |
Output is correct |
25 |
Correct |
92 ms |
1328 KB |
Output is correct |
26 |
Correct |
225 ms |
2360 KB |
Output is correct |
27 |
Correct |
186 ms |
2352 KB |
Output is correct |
28 |
Correct |
28 ms |
2320 KB |
Output is correct |
29 |
Correct |
92 ms |
2260 KB |
Output is correct |
30 |
Correct |
146 ms |
2352 KB |
Output is correct |
31 |
Correct |
44 ms |
2352 KB |
Output is correct |
32 |
Correct |
71 ms |
2268 KB |
Output is correct |
33 |
Correct |
45 ms |
1236 KB |
Output is correct |
34 |
Correct |
217 ms |
2348 KB |
Output is correct |
35 |
Correct |
199 ms |
2352 KB |
Output is correct |
36 |
Correct |
103 ms |
2352 KB |
Output is correct |
37 |
Correct |
17 ms |
1256 KB |
Output is correct |
38 |
Correct |
41 ms |
1316 KB |
Output is correct |
39 |
Correct |
23 ms |
908 KB |
Output is correct |
40 |
Correct |
155 ms |
2324 KB |
Output is correct |
41 |
Correct |
25 ms |
852 KB |
Output is correct |
42 |
Correct |
158 ms |
2352 KB |
Output is correct |
43 |
Correct |
154 ms |
2344 KB |
Output is correct |
44 |
Correct |
164 ms |
2344 KB |
Output is correct |
45 |
Correct |
167 ms |
2352 KB |
Output is correct |
46 |
Correct |
12 ms |
1252 KB |
Output is correct |
47 |
Correct |
243 ms |
2352 KB |
Output is correct |
48 |
Correct |
217 ms |
2352 KB |
Output is correct |
49 |
Correct |
75 ms |
2352 KB |
Output is correct |
50 |
Correct |
18 ms |
964 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
596 KB |
Output is correct |
2 |
Correct |
1 ms |
596 KB |
Output is correct |
3 |
Correct |
1 ms |
596 KB |
Output is correct |
4 |
Correct |
4 ms |
596 KB |
Output is correct |
5 |
Correct |
4 ms |
596 KB |
Output is correct |
6 |
Correct |
23 ms |
724 KB |
Output is correct |
7 |
Correct |
1 ms |
596 KB |
Output is correct |
8 |
Correct |
7 ms |
1236 KB |
Output is correct |
9 |
Correct |
3 ms |
852 KB |
Output is correct |
10 |
Correct |
1 ms |
724 KB |
Output is correct |
11 |
Correct |
7 ms |
1300 KB |
Output is correct |
12 |
Correct |
2 ms |
724 KB |
Output is correct |
13 |
Correct |
2 ms |
596 KB |
Output is correct |
14 |
Correct |
1 ms |
596 KB |
Output is correct |
15 |
Correct |
8 ms |
1236 KB |
Output is correct |
16 |
Correct |
105 ms |
2288 KB |
Output is correct |
17 |
Correct |
3 ms |
724 KB |
Output is correct |
18 |
Correct |
34 ms |
1284 KB |
Output is correct |
19 |
Correct |
1 ms |
724 KB |
Output is correct |
20 |
Correct |
70 ms |
2340 KB |
Output is correct |
21 |
Correct |
30 ms |
1236 KB |
Output is correct |
22 |
Correct |
5 ms |
724 KB |
Output is correct |
23 |
Correct |
1 ms |
596 KB |
Output is correct |
24 |
Correct |
7 ms |
720 KB |
Output is correct |
25 |
Correct |
35 ms |
2336 KB |
Output is correct |
26 |
Correct |
47 ms |
2320 KB |
Output is correct |
27 |
Correct |
8 ms |
724 KB |
Output is correct |
28 |
Correct |
1 ms |
596 KB |
Output is correct |
29 |
Correct |
1 ms |
596 KB |
Output is correct |
30 |
Correct |
0 ms |
596 KB |
Output is correct |
31 |
Correct |
0 ms |
596 KB |
Output is correct |
32 |
Correct |
7 ms |
1236 KB |
Output is correct |
33 |
Correct |
3 ms |
852 KB |
Output is correct |
34 |
Correct |
1 ms |
724 KB |
Output is correct |
35 |
Correct |
1 ms |
596 KB |
Output is correct |
36 |
Correct |
0 ms |
596 KB |
Output is correct |
37 |
Correct |
1 ms |
596 KB |
Output is correct |
38 |
Correct |
1 ms |
596 KB |
Output is correct |
39 |
Correct |
1 ms |
596 KB |
Output is correct |
40 |
Correct |
0 ms |
596 KB |
Output is correct |
41 |
Correct |
0 ms |
596 KB |
Output is correct |
42 |
Correct |
1 ms |
596 KB |
Output is correct |
43 |
Correct |
1 ms |
596 KB |
Output is correct |
44 |
Correct |
0 ms |
596 KB |
Output is correct |
45 |
Correct |
17 ms |
2244 KB |
Output is correct |
46 |
Correct |
17 ms |
2264 KB |
Output is correct |
47 |
Correct |
0 ms |
596 KB |
Output is correct |
48 |
Correct |
1 ms |
596 KB |
Output is correct |
49 |
Correct |
1 ms |
724 KB |
Output is correct |
50 |
Correct |
1 ms |
724 KB |
Output is correct |
51 |
Correct |
1 ms |
724 KB |
Output is correct |
52 |
Correct |
1 ms |
596 KB |
Output is correct |
53 |
Correct |
0 ms |
596 KB |
Output is correct |
54 |
Correct |
0 ms |
596 KB |
Output is correct |
55 |
Correct |
1 ms |
596 KB |
Output is correct |
56 |
Correct |
0 ms |
596 KB |
Output is correct |
57 |
Correct |
0 ms |
596 KB |
Output is correct |
58 |
Correct |
0 ms |
596 KB |
Output is correct |
59 |
Correct |
0 ms |
596 KB |
Output is correct |
60 |
Correct |
1 ms |
596 KB |
Output is correct |
61 |
Correct |
1 ms |
596 KB |
Output is correct |
62 |
Correct |
1 ms |
596 KB |
Output is correct |
63 |
Correct |
1 ms |
596 KB |
Output is correct |
64 |
Correct |
1 ms |
596 KB |
Output is correct |
65 |
Correct |
1 ms |
596 KB |
Output is correct |
66 |
Correct |
1 ms |
596 KB |
Output is correct |
67 |
Correct |
1 ms |
596 KB |
Output is correct |
68 |
Correct |
5 ms |
596 KB |
Output is correct |
69 |
Correct |
1 ms |
596 KB |
Output is correct |
70 |
Correct |
0 ms |
596 KB |
Output is correct |
71 |
Correct |
6 ms |
596 KB |
Output is correct |
72 |
Correct |
0 ms |
596 KB |
Output is correct |
73 |
Correct |
1 ms |
596 KB |
Output is correct |
74 |
Correct |
1 ms |
596 KB |
Output is correct |
75 |
Correct |
1 ms |
596 KB |
Output is correct |
76 |
Correct |
1 ms |
596 KB |
Output is correct |
77 |
Correct |
3 ms |
596 KB |
Output is correct |
78 |
Correct |
1 ms |
596 KB |
Output is correct |
79 |
Correct |
0 ms |
596 KB |
Output is correct |
80 |
Correct |
1 ms |
596 KB |
Output is correct |
81 |
Correct |
2 ms |
596 KB |
Output is correct |
82 |
Correct |
2 ms |
596 KB |
Output is correct |
83 |
Correct |
1 ms |
596 KB |
Output is correct |
84 |
Correct |
6 ms |
724 KB |
Output is correct |
85 |
Correct |
3 ms |
596 KB |
Output is correct |
86 |
Correct |
9 ms |
596 KB |
Output is correct |
87 |
Correct |
2 ms |
596 KB |
Output is correct |
88 |
Correct |
2 ms |
724 KB |
Output is correct |
89 |
Correct |
2 ms |
596 KB |
Output is correct |
90 |
Correct |
2 ms |
596 KB |
Output is correct |
91 |
Correct |
6 ms |
720 KB |
Output is correct |
92 |
Correct |
4 ms |
596 KB |
Output is correct |
93 |
Correct |
1 ms |
596 KB |
Output is correct |
94 |
Correct |
3 ms |
596 KB |
Output is correct |
95 |
Correct |
1 ms |
724 KB |
Output is correct |
96 |
Correct |
3 ms |
596 KB |
Output is correct |
97 |
Correct |
1 ms |
596 KB |
Output is correct |
98 |
Correct |
2 ms |
724 KB |
Output is correct |
99 |
Correct |
2 ms |
596 KB |
Output is correct |
100 |
Correct |
1 ms |
596 KB |
Output is correct |
101 |
Correct |
5 ms |
596 KB |
Output is correct |
102 |
Correct |
5 ms |
596 KB |
Output is correct |
103 |
Correct |
212 ms |
724 KB |
Output is correct |
104 |
Correct |
2 ms |
596 KB |
Output is correct |
105 |
Correct |
9 ms |
764 KB |
Output is correct |
106 |
Correct |
3 ms |
596 KB |
Output is correct |
107 |
Correct |
1 ms |
596 KB |
Output is correct |
108 |
Correct |
1 ms |
596 KB |
Output is correct |
109 |
Correct |
5 ms |
724 KB |
Output is correct |
110 |
Correct |
45 ms |
596 KB |
Output is correct |
111 |
Correct |
264 ms |
724 KB |
Output is correct |
112 |
Correct |
1998 ms |
760 KB |
Output is correct |
113 |
Correct |
43 ms |
704 KB |
Output is correct |
114 |
Correct |
40 ms |
596 KB |
Output is correct |
115 |
Correct |
238 ms |
724 KB |
Output is correct |
116 |
Correct |
1290 ms |
848 KB |
Output is correct |
117 |
Correct |
226 ms |
724 KB |
Output is correct |
118 |
Correct |
219 ms |
724 KB |
Output is correct |
119 |
Correct |
1055 ms |
760 KB |
Output is correct |
120 |
Correct |
429 ms |
756 KB |
Output is correct |
121 |
Correct |
68 ms |
724 KB |
Output is correct |
122 |
Correct |
381 ms |
756 KB |
Output is correct |
123 |
Correct |
22 ms |
724 KB |
Output is correct |
124 |
Correct |
221 ms |
724 KB |
Output is correct |
125 |
Correct |
1314 ms |
760 KB |
Output is correct |
126 |
Correct |
35 ms |
596 KB |
Output is correct |
127 |
Correct |
189 ms |
724 KB |
Output is correct |
128 |
Correct |
60 ms |
724 KB |
Output is correct |
129 |
Correct |
163 ms |
724 KB |
Output is correct |
130 |
Correct |
90 ms |
704 KB |
Output is correct |
131 |
Correct |
236 ms |
724 KB |
Output is correct |
132 |
Correct |
1303 ms |
752 KB |
Output is correct |
133 |
Correct |
1330 ms |
760 KB |
Output is correct |
134 |
Correct |
212 ms |
752 KB |
Output is correct |
135 |
Correct |
250 ms |
756 KB |
Output is correct |
136 |
Correct |
38 ms |
724 KB |
Output is correct |
137 |
Correct |
262 ms |
764 KB |
Output is correct |
138 |
Correct |
1 ms |
596 KB |
Output is correct |
139 |
Correct |
1 ms |
596 KB |
Output is correct |
140 |
Correct |
1 ms |
596 KB |
Output is correct |
141 |
Correct |
43 ms |
1236 KB |
Output is correct |
142 |
Correct |
16 ms |
852 KB |
Output is correct |
143 |
Correct |
17 ms |
852 KB |
Output is correct |
144 |
Correct |
5 ms |
784 KB |
Output is correct |
145 |
Correct |
6 ms |
724 KB |
Output is correct |
146 |
Correct |
2 ms |
724 KB |
Output is correct |
147 |
Correct |
3 ms |
724 KB |
Output is correct |
148 |
Correct |
7 ms |
1196 KB |
Output is correct |
149 |
Correct |
3 ms |
852 KB |
Output is correct |
150 |
Correct |
1 ms |
724 KB |
Output is correct |
151 |
Correct |
7 ms |
1236 KB |
Output is correct |
152 |
Correct |
1 ms |
724 KB |
Output is correct |
153 |
Correct |
2 ms |
596 KB |
Output is correct |
154 |
Correct |
3 ms |
724 KB |
Output is correct |
155 |
Correct |
2 ms |
724 KB |
Output is correct |
156 |
Correct |
2 ms |
724 KB |
Output is correct |
157 |
Correct |
52 ms |
1236 KB |
Output is correct |
158 |
Correct |
22 ms |
960 KB |
Output is correct |
159 |
Correct |
1 ms |
732 KB |
Output is correct |
160 |
Correct |
7 ms |
724 KB |
Output is correct |
161 |
Correct |
213 ms |
2356 KB |
Output is correct |
162 |
Correct |
92 ms |
1328 KB |
Output is correct |
163 |
Correct |
225 ms |
2360 KB |
Output is correct |
164 |
Correct |
186 ms |
2352 KB |
Output is correct |
165 |
Correct |
28 ms |
2320 KB |
Output is correct |
166 |
Correct |
92 ms |
2260 KB |
Output is correct |
167 |
Correct |
146 ms |
2352 KB |
Output is correct |
168 |
Correct |
44 ms |
2352 KB |
Output is correct |
169 |
Correct |
71 ms |
2268 KB |
Output is correct |
170 |
Correct |
45 ms |
1236 KB |
Output is correct |
171 |
Correct |
217 ms |
2348 KB |
Output is correct |
172 |
Correct |
199 ms |
2352 KB |
Output is correct |
173 |
Correct |
103 ms |
2352 KB |
Output is correct |
174 |
Correct |
17 ms |
1256 KB |
Output is correct |
175 |
Correct |
41 ms |
1316 KB |
Output is correct |
176 |
Correct |
23 ms |
908 KB |
Output is correct |
177 |
Correct |
155 ms |
2324 KB |
Output is correct |
178 |
Correct |
25 ms |
852 KB |
Output is correct |
179 |
Correct |
158 ms |
2352 KB |
Output is correct |
180 |
Correct |
154 ms |
2344 KB |
Output is correct |
181 |
Correct |
164 ms |
2344 KB |
Output is correct |
182 |
Correct |
167 ms |
2352 KB |
Output is correct |
183 |
Correct |
12 ms |
1252 KB |
Output is correct |
184 |
Correct |
243 ms |
2352 KB |
Output is correct |
185 |
Correct |
217 ms |
2352 KB |
Output is correct |
186 |
Correct |
75 ms |
2352 KB |
Output is correct |
187 |
Correct |
18 ms |
964 KB |
Output is correct |
188 |
Correct |
163 ms |
2352 KB |
Output is correct |
189 |
Correct |
1 ms |
596 KB |
Output is correct |
190 |
Correct |
1 ms |
596 KB |
Output is correct |
191 |
Correct |
1 ms |
596 KB |
Output is correct |
192 |
Correct |
1 ms |
724 KB |
Output is correct |
193 |
Correct |
2 ms |
596 KB |
Output is correct |
194 |
Correct |
1 ms |
712 KB |
Output is correct |
195 |
Correct |
241 ms |
724 KB |
Output is correct |
196 |
Correct |
1 ms |
596 KB |
Output is correct |
197 |
Correct |
6 ms |
724 KB |
Output is correct |
198 |
Correct |
1 ms |
704 KB |
Output is correct |
199 |
Correct |
17 ms |
960 KB |
Output is correct |
200 |
Correct |
4 ms |
704 KB |
Output is correct |
201 |
Correct |
5 ms |
724 KB |
Output is correct |
202 |
Correct |
3 ms |
704 KB |
Output is correct |
203 |
Correct |
3 ms |
724 KB |
Output is correct |
204 |
Correct |
3 ms |
676 KB |
Output is correct |
205 |
Correct |
10 ms |
724 KB |
Output is correct |
206 |
Correct |
5 ms |
712 KB |
Output is correct |
207 |
Correct |
1 ms |
704 KB |
Output is correct |
208 |
Correct |
131 ms |
2316 KB |
Output is correct |
209 |
Correct |
138 ms |
2360 KB |
Output is correct |
210 |
Correct |
1 ms |
708 KB |
Output is correct |
211 |
Correct |
2 ms |
724 KB |
Output is correct |
212 |
Correct |
52 ms |
1324 KB |
Output is correct |
213 |
Correct |
2 ms |
724 KB |
Output is correct |
214 |
Correct |
6 ms |
724 KB |
Output is correct |
215 |
Correct |
290 ms |
724 KB |
Output is correct |
216 |
Correct |
194 ms |
2288 KB |
Output is correct |
217 |
Correct |
217 ms |
2360 KB |
Output is correct |
218 |
Correct |
2 ms |
724 KB |
Output is correct |
219 |
Correct |
7 ms |
728 KB |
Output is correct |
220 |
Correct |
2 ms |
720 KB |
Output is correct |
221 |
Correct |
2 ms |
596 KB |
Output is correct |
222 |
Correct |
5 ms |
596 KB |
Output is correct |
223 |
Correct |
1327 ms |
764 KB |
Output is correct |
224 |
Correct |
246 ms |
2360 KB |
Output is correct |
225 |
Correct |
6 ms |
708 KB |
Output is correct |
226 |
Correct |
267 ms |
724 KB |
Output is correct |
227 |
Correct |
221 ms |
724 KB |
Output is correct |
228 |
Correct |
94 ms |
2348 KB |
Output is correct |
229 |
Correct |
41 ms |
2348 KB |
Output is correct |
230 |
Correct |
100 ms |
2312 KB |
Output is correct |
231 |
Correct |
209 ms |
2352 KB |
Output is correct |
232 |
Correct |
3 ms |
596 KB |
Output is correct |
233 |
Correct |
1 ms |
704 KB |
Output is correct |
234 |
Correct |
191 ms |
2356 KB |
Output is correct |
235 |
Correct |
3 ms |
724 KB |
Output is correct |
236 |
Correct |
48 ms |
1236 KB |
Output is correct |
237 |
Correct |
1376 ms |
760 KB |
Output is correct |
238 |
Correct |
226 ms |
724 KB |
Output is correct |
239 |
Correct |
23 ms |
852 KB |
Output is correct |
240 |
Correct |
154 ms |
2356 KB |
Output is correct |
241 |
Correct |
90 ms |
724 KB |
Output is correct |
242 |
Correct |
250 ms |
724 KB |
Output is correct |
243 |
Correct |
1 ms |
724 KB |
Output is correct |
244 |
Correct |
2 ms |
596 KB |
Output is correct |
245 |
Correct |
10 ms |
1328 KB |
Output is correct |