답안 #568263

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
568263 2022-05-25T04:06:08 Z Zanite 벽 칠하기 (APIO20_paint) C++17
40 / 100
1500 ms 422248 KB
// You can't change other people; you can only change yourself.

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>

#include "paint.h"

// Pragmas
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")

// Namespaces
#define yume using
#define wo namespace
#define kanaeyo std
#define nazotte __gnu_pbds
yume wo kanaeyo;
yume wo nazotte;

// Data types
using i8	= __int128;
using ll	= long long;
using si	= short int;
using ld	= long double;

// Pairs
using pi8	= pair<i8, i8>;
using pll	= pair<ll, ll>;
using pii	= pair<int, int>;
using psi	= pair<si, si>;
using pld	= pair<ld, ld>;
#define fi first
#define se second

// PBDS
template<typename T>
using ordered_set	= tree<T, null_type, less<T>, rb_tree_tag,tree_order_statistics_node_update>;

// Quick macro functions
#define sqr(x) ((x)*(x))
#define pow2(x) (1ll << (x))
#define debug(x) cout << #x << " = " << (x) << '\n'
#define debugV(x, a) cout << #x << "[" << (a) << "] = " << (x[a]) << '\n'

// Check min and max
template<typename T> void chmin(T &a, T b) {a = min(a, b);}
template<typename T> void chmax(T &a, T b) {a = max(a, b);}
 
// Modular arithmetic
template<typename T> void maddto(T &a, T b, T mod) {a += b; a %= mod;}
template<typename T> void msubto(T &a, T b, T mod) {a -= b; while (a < 0) a += mod; a %= mod;}
template<typename T> void mmulto(T &a, T b, T mod) {a *= b; a %= mod;}
 
template<typename T> T madd(T a, T b, T mod) {a += b; a %= mod; return a;}
template<typename T> T msub(T a, T b, T mod) {a -= b; while (a < 0) a += mod; return a;}
template<typename T> T mmul(T a, T b, T mod) {a *= b; a %= mod; return a;}

// Constants
const ll ModA	= 998244353;
const ll ModC	= 1e9 + 7;
const ll INF	= 1e18;
const ll iINF	= 1e9;
const ld EPS	= 1e-9;
const ld iEPS	= 1e-6;

int minimumInstructions(int N, int M, int K, vector<int> C, vector<int> A, vector<vector<int>> B) {
	vector<int> contractor[K];
	for (int i = 0; i < M; i++) {
		for (int j = 0; j < A[i]; j++) {
			contractor[B[i][j]].push_back(i);
		}
	}

	vector<bool> pos(N);
	map<int, int> len[N];
	for (auto x : contractor[C[N-1]]) {
		len[N-1][x] = 1;
		if (len[N-1][x] >= M) {
			pos[N-1] = 1;
		}
	}
	for (int i = N-2; i >= 0; i--) {
		for (auto x : contractor[C[i]]) {
			len[i][x] = len[i+1][(x+1) % M] + 1;
			if (len[i][x] >= M) {
				pos[i] = 1;
			}
		}
	}
	
	vector<int> segments;
	for (int i = 0; i < N; i++) {
		if (pos[i]) {segments.push_back(i);}
	}
	segments.push_back(N);
	
	vector<int> used = {-M};
	for (auto s : segments) {
		if (s > used.back() + M) {
			return -1;
		} else {
			int us = used.size();
			if (us >= 2 && s <= used[us-2] + M) {
				used.pop_back();
			}
			used.push_back(s);
		}

		//for (auto i : used) {cout << i << ' ';}
		//cout << '\n';
	}
	return used.size()-2;
}

//int main() {}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 1 ms 296 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 1 ms 296 KB Output is correct
13 Correct 3 ms 2732 KB Output is correct
14 Correct 3 ms 2644 KB Output is correct
15 Correct 2 ms 2644 KB Output is correct
16 Correct 2 ms 2732 KB Output is correct
17 Correct 3 ms 2732 KB Output is correct
18 Correct 2 ms 2644 KB Output is correct
19 Correct 2 ms 2612 KB Output is correct
20 Correct 2 ms 2616 KB Output is correct
21 Correct 2 ms 2644 KB Output is correct
22 Correct 20 ms 7116 KB Output is correct
23 Correct 18 ms 7148 KB Output is correct
24 Correct 19 ms 7100 KB Output is correct
25 Correct 4 ms 2644 KB Output is correct
26 Correct 4 ms 2644 KB Output is correct
27 Correct 5 ms 2900 KB Output is correct
28 Correct 7 ms 3036 KB Output is correct
29 Correct 5 ms 2976 KB Output is correct
30 Correct 5 ms 3028 KB Output is correct
31 Correct 14 ms 5972 KB Output is correct
32 Correct 10 ms 5948 KB Output is correct
33 Correct 12 ms 5972 KB Output is correct
34 Correct 12 ms 6032 KB Output is correct
35 Correct 13 ms 5944 KB Output is correct
36 Correct 13 ms 5988 KB Output is correct
37 Correct 27 ms 10260 KB Output is correct
38 Correct 28 ms 10316 KB Output is correct
39 Correct 30 ms 10296 KB Output is correct
40 Correct 17 ms 10728 KB Output is correct
41 Correct 12 ms 6740 KB Output is correct
42 Correct 29 ms 13260 KB Output is correct
43 Correct 16 ms 9172 KB Output is correct
44 Correct 15 ms 8572 KB Output is correct
45 Correct 27 ms 14360 KB Output is correct
46 Correct 56 ms 20852 KB Output is correct
47 Correct 40 ms 13608 KB Output is correct
48 Correct 40 ms 15744 KB Output is correct
49 Correct 54 ms 19144 KB Output is correct
50 Correct 65 ms 20144 KB Output is correct
51 Correct 46 ms 18108 KB Output is correct
52 Correct 20 ms 11740 KB Output is correct
53 Correct 18 ms 11788 KB Output is correct
54 Correct 26 ms 13320 KB Output is correct
55 Correct 33 ms 13824 KB Output is correct
56 Correct 33 ms 14172 KB Output is correct
57 Correct 28 ms 14332 KB Output is correct
58 Correct 60 ms 22864 KB Output is correct
59 Correct 60 ms 22748 KB Output is correct
60 Correct 54 ms 22860 KB Output is correct
61 Correct 57 ms 22776 KB Output is correct
62 Correct 61 ms 22864 KB Output is correct
63 Correct 80 ms 22812 KB Output is correct
64 Correct 102 ms 26616 KB Output is correct
65 Correct 76 ms 26660 KB Output is correct
66 Correct 77 ms 26548 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 1 ms 296 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 1 ms 296 KB Output is correct
13 Correct 3 ms 2732 KB Output is correct
14 Correct 3 ms 2644 KB Output is correct
15 Correct 2 ms 2644 KB Output is correct
16 Correct 2 ms 2732 KB Output is correct
17 Correct 3 ms 2732 KB Output is correct
18 Correct 2 ms 2644 KB Output is correct
19 Correct 2 ms 2612 KB Output is correct
20 Correct 2 ms 2616 KB Output is correct
21 Correct 2 ms 2644 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 1 ms 296 KB Output is correct
26 Correct 1 ms 212 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 2 ms 724 KB Output is correct
29 Correct 2 ms 596 KB Output is correct
30 Correct 1 ms 596 KB Output is correct
31 Correct 1 ms 468 KB Output is correct
32 Correct 2 ms 596 KB Output is correct
33 Correct 2 ms 2348 KB Output is correct
34 Correct 1 ms 1876 KB Output is correct
35 Correct 1 ms 1620 KB Output is correct
36 Correct 2 ms 2644 KB Output is correct
37 Correct 2 ms 2132 KB Output is correct
38 Correct 2 ms 2388 KB Output is correct
39 Correct 1 ms 340 KB Output is correct
40 Correct 2 ms 2132 KB Output is correct
41 Correct 1 ms 340 KB Output is correct
42 Correct 2 ms 2476 KB Output is correct
43 Correct 2 ms 2516 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 3 ms 936 KB Output is correct
46 Correct 3 ms 980 KB Output is correct
47 Correct 3 ms 980 KB Output is correct
48 Correct 2 ms 852 KB Output is correct
49 Correct 2 ms 852 KB Output is correct
50 Correct 2 ms 2676 KB Output is correct
51 Correct 2 ms 2644 KB Output is correct
52 Correct 2 ms 2732 KB Output is correct
53 Correct 2 ms 2644 KB Output is correct
54 Correct 2 ms 2740 KB Output is correct
55 Correct 2 ms 2644 KB Output is correct
56 Correct 2 ms 2608 KB Output is correct
57 Correct 1 ms 340 KB Output is correct
58 Correct 2 ms 2644 KB Output is correct
59 Correct 1 ms 340 KB Output is correct
60 Correct 2 ms 2644 KB Output is correct
61 Correct 1 ms 340 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 296 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 296 KB Output is correct
15 Correct 3 ms 2732 KB Output is correct
16 Correct 3 ms 2644 KB Output is correct
17 Correct 2 ms 2644 KB Output is correct
18 Correct 2 ms 2732 KB Output is correct
19 Correct 3 ms 2732 KB Output is correct
20 Correct 2 ms 2644 KB Output is correct
21 Correct 2 ms 2612 KB Output is correct
22 Correct 2 ms 2616 KB Output is correct
23 Correct 2 ms 2644 KB Output is correct
24 Correct 20 ms 7116 KB Output is correct
25 Correct 18 ms 7148 KB Output is correct
26 Correct 19 ms 7100 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 296 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 2 ms 724 KB Output is correct
32 Correct 2 ms 596 KB Output is correct
33 Correct 1 ms 596 KB Output is correct
34 Correct 1 ms 468 KB Output is correct
35 Correct 2 ms 596 KB Output is correct
36 Correct 2 ms 2348 KB Output is correct
37 Correct 1 ms 1876 KB Output is correct
38 Correct 1 ms 1620 KB Output is correct
39 Correct 2 ms 2644 KB Output is correct
40 Correct 2 ms 2132 KB Output is correct
41 Correct 2 ms 2388 KB Output is correct
42 Correct 1 ms 340 KB Output is correct
43 Correct 2 ms 2132 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 2 ms 2476 KB Output is correct
46 Correct 2 ms 2516 KB Output is correct
47 Correct 1 ms 340 KB Output is correct
48 Correct 3 ms 936 KB Output is correct
49 Correct 3 ms 980 KB Output is correct
50 Correct 3 ms 980 KB Output is correct
51 Correct 2 ms 852 KB Output is correct
52 Correct 2 ms 852 KB Output is correct
53 Correct 2 ms 2676 KB Output is correct
54 Correct 2 ms 2644 KB Output is correct
55 Correct 2 ms 2732 KB Output is correct
56 Correct 2 ms 2644 KB Output is correct
57 Correct 2 ms 2740 KB Output is correct
58 Correct 2 ms 2644 KB Output is correct
59 Correct 2 ms 2608 KB Output is correct
60 Correct 1 ms 340 KB Output is correct
61 Correct 2 ms 2644 KB Output is correct
62 Correct 1 ms 340 KB Output is correct
63 Correct 2 ms 2644 KB Output is correct
64 Correct 1 ms 340 KB Output is correct
65 Correct 9 ms 2516 KB Output is correct
66 Correct 4 ms 1108 KB Output is correct
67 Correct 11 ms 3156 KB Output is correct
68 Correct 8 ms 1876 KB Output is correct
69 Correct 11 ms 2724 KB Output is correct
70 Correct 4 ms 2900 KB Output is correct
71 Correct 5 ms 2740 KB Output is correct
72 Correct 5 ms 2388 KB Output is correct
73 Correct 3 ms 2260 KB Output is correct
74 Correct 5 ms 2900 KB Output is correct
75 Correct 4 ms 3128 KB Output is correct
76 Correct 21 ms 5244 KB Output is correct
77 Correct 19 ms 6096 KB Output is correct
78 Correct 29 ms 6948 KB Output is correct
79 Correct 23 ms 4932 KB Output is correct
80 Correct 24 ms 5068 KB Output is correct
81 Correct 23 ms 5024 KB Output is correct
82 Correct 18 ms 5036 KB Output is correct
83 Correct 17 ms 5020 KB Output is correct
84 Correct 5 ms 3540 KB Output is correct
85 Correct 6 ms 3508 KB Output is correct
86 Correct 6 ms 3540 KB Output is correct
87 Correct 6 ms 3668 KB Output is correct
88 Correct 7 ms 3540 KB Output is correct
89 Correct 6 ms 3576 KB Output is correct
90 Correct 34 ms 7348 KB Output is correct
91 Correct 33 ms 7400 KB Output is correct
92 Correct 32 ms 7360 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 296 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 296 KB Output is correct
15 Correct 3 ms 2732 KB Output is correct
16 Correct 3 ms 2644 KB Output is correct
17 Correct 2 ms 2644 KB Output is correct
18 Correct 2 ms 2732 KB Output is correct
19 Correct 3 ms 2732 KB Output is correct
20 Correct 2 ms 2644 KB Output is correct
21 Correct 2 ms 2612 KB Output is correct
22 Correct 2 ms 2616 KB Output is correct
23 Correct 2 ms 2644 KB Output is correct
24 Correct 20 ms 7116 KB Output is correct
25 Correct 18 ms 7148 KB Output is correct
26 Correct 19 ms 7100 KB Output is correct
27 Correct 4 ms 2644 KB Output is correct
28 Correct 4 ms 2644 KB Output is correct
29 Correct 5 ms 2900 KB Output is correct
30 Correct 7 ms 3036 KB Output is correct
31 Correct 5 ms 2976 KB Output is correct
32 Correct 5 ms 3028 KB Output is correct
33 Correct 14 ms 5972 KB Output is correct
34 Correct 10 ms 5948 KB Output is correct
35 Correct 12 ms 5972 KB Output is correct
36 Correct 12 ms 6032 KB Output is correct
37 Correct 13 ms 5944 KB Output is correct
38 Correct 13 ms 5988 KB Output is correct
39 Correct 27 ms 10260 KB Output is correct
40 Correct 28 ms 10316 KB Output is correct
41 Correct 30 ms 10296 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 1 ms 296 KB Output is correct
44 Correct 1 ms 212 KB Output is correct
45 Correct 1 ms 340 KB Output is correct
46 Correct 2 ms 724 KB Output is correct
47 Correct 2 ms 596 KB Output is correct
48 Correct 1 ms 596 KB Output is correct
49 Correct 1 ms 468 KB Output is correct
50 Correct 2 ms 596 KB Output is correct
51 Correct 2 ms 2348 KB Output is correct
52 Correct 1 ms 1876 KB Output is correct
53 Correct 1 ms 1620 KB Output is correct
54 Correct 2 ms 2644 KB Output is correct
55 Correct 2 ms 2132 KB Output is correct
56 Correct 2 ms 2388 KB Output is correct
57 Correct 1 ms 340 KB Output is correct
58 Correct 2 ms 2132 KB Output is correct
59 Correct 1 ms 340 KB Output is correct
60 Correct 2 ms 2476 KB Output is correct
61 Correct 2 ms 2516 KB Output is correct
62 Correct 1 ms 340 KB Output is correct
63 Correct 3 ms 936 KB Output is correct
64 Correct 3 ms 980 KB Output is correct
65 Correct 3 ms 980 KB Output is correct
66 Correct 2 ms 852 KB Output is correct
67 Correct 2 ms 852 KB Output is correct
68 Correct 2 ms 2676 KB Output is correct
69 Correct 2 ms 2644 KB Output is correct
70 Correct 2 ms 2732 KB Output is correct
71 Correct 2 ms 2644 KB Output is correct
72 Correct 2 ms 2740 KB Output is correct
73 Correct 2 ms 2644 KB Output is correct
74 Correct 2 ms 2608 KB Output is correct
75 Correct 1 ms 340 KB Output is correct
76 Correct 2 ms 2644 KB Output is correct
77 Correct 1 ms 340 KB Output is correct
78 Correct 2 ms 2644 KB Output is correct
79 Correct 1 ms 340 KB Output is correct
80 Correct 9 ms 2516 KB Output is correct
81 Correct 4 ms 1108 KB Output is correct
82 Correct 11 ms 3156 KB Output is correct
83 Correct 8 ms 1876 KB Output is correct
84 Correct 11 ms 2724 KB Output is correct
85 Correct 4 ms 2900 KB Output is correct
86 Correct 5 ms 2740 KB Output is correct
87 Correct 5 ms 2388 KB Output is correct
88 Correct 3 ms 2260 KB Output is correct
89 Correct 5 ms 2900 KB Output is correct
90 Correct 4 ms 3128 KB Output is correct
91 Correct 21 ms 5244 KB Output is correct
92 Correct 19 ms 6096 KB Output is correct
93 Correct 29 ms 6948 KB Output is correct
94 Correct 23 ms 4932 KB Output is correct
95 Correct 24 ms 5068 KB Output is correct
96 Correct 23 ms 5024 KB Output is correct
97 Correct 18 ms 5036 KB Output is correct
98 Correct 17 ms 5020 KB Output is correct
99 Correct 5 ms 3540 KB Output is correct
100 Correct 6 ms 3508 KB Output is correct
101 Correct 6 ms 3540 KB Output is correct
102 Correct 6 ms 3668 KB Output is correct
103 Correct 7 ms 3540 KB Output is correct
104 Correct 6 ms 3576 KB Output is correct
105 Correct 34 ms 7348 KB Output is correct
106 Correct 33 ms 7400 KB Output is correct
107 Correct 32 ms 7360 KB Output is correct
108 Correct 6 ms 3484 KB Output is correct
109 Execution timed out 1604 ms 422248 KB Time limit exceeded
110 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 296 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 296 KB Output is correct
15 Correct 3 ms 2732 KB Output is correct
16 Correct 3 ms 2644 KB Output is correct
17 Correct 2 ms 2644 KB Output is correct
18 Correct 2 ms 2732 KB Output is correct
19 Correct 3 ms 2732 KB Output is correct
20 Correct 2 ms 2644 KB Output is correct
21 Correct 2 ms 2612 KB Output is correct
22 Correct 2 ms 2616 KB Output is correct
23 Correct 2 ms 2644 KB Output is correct
24 Correct 20 ms 7116 KB Output is correct
25 Correct 18 ms 7148 KB Output is correct
26 Correct 19 ms 7100 KB Output is correct
27 Correct 4 ms 2644 KB Output is correct
28 Correct 4 ms 2644 KB Output is correct
29 Correct 5 ms 2900 KB Output is correct
30 Correct 7 ms 3036 KB Output is correct
31 Correct 5 ms 2976 KB Output is correct
32 Correct 5 ms 3028 KB Output is correct
33 Correct 14 ms 5972 KB Output is correct
34 Correct 10 ms 5948 KB Output is correct
35 Correct 12 ms 5972 KB Output is correct
36 Correct 12 ms 6032 KB Output is correct
37 Correct 13 ms 5944 KB Output is correct
38 Correct 13 ms 5988 KB Output is correct
39 Correct 27 ms 10260 KB Output is correct
40 Correct 28 ms 10316 KB Output is correct
41 Correct 30 ms 10296 KB Output is correct
42 Correct 17 ms 10728 KB Output is correct
43 Correct 12 ms 6740 KB Output is correct
44 Correct 29 ms 13260 KB Output is correct
45 Correct 16 ms 9172 KB Output is correct
46 Correct 15 ms 8572 KB Output is correct
47 Correct 27 ms 14360 KB Output is correct
48 Correct 56 ms 20852 KB Output is correct
49 Correct 40 ms 13608 KB Output is correct
50 Correct 40 ms 15744 KB Output is correct
51 Correct 54 ms 19144 KB Output is correct
52 Correct 65 ms 20144 KB Output is correct
53 Correct 46 ms 18108 KB Output is correct
54 Correct 20 ms 11740 KB Output is correct
55 Correct 18 ms 11788 KB Output is correct
56 Correct 26 ms 13320 KB Output is correct
57 Correct 33 ms 13824 KB Output is correct
58 Correct 33 ms 14172 KB Output is correct
59 Correct 28 ms 14332 KB Output is correct
60 Correct 60 ms 22864 KB Output is correct
61 Correct 60 ms 22748 KB Output is correct
62 Correct 54 ms 22860 KB Output is correct
63 Correct 57 ms 22776 KB Output is correct
64 Correct 61 ms 22864 KB Output is correct
65 Correct 80 ms 22812 KB Output is correct
66 Correct 102 ms 26616 KB Output is correct
67 Correct 76 ms 26660 KB Output is correct
68 Correct 77 ms 26548 KB Output is correct
69 Correct 1 ms 212 KB Output is correct
70 Correct 1 ms 296 KB Output is correct
71 Correct 1 ms 212 KB Output is correct
72 Correct 1 ms 340 KB Output is correct
73 Correct 2 ms 724 KB Output is correct
74 Correct 2 ms 596 KB Output is correct
75 Correct 1 ms 596 KB Output is correct
76 Correct 1 ms 468 KB Output is correct
77 Correct 2 ms 596 KB Output is correct
78 Correct 2 ms 2348 KB Output is correct
79 Correct 1 ms 1876 KB Output is correct
80 Correct 1 ms 1620 KB Output is correct
81 Correct 2 ms 2644 KB Output is correct
82 Correct 2 ms 2132 KB Output is correct
83 Correct 2 ms 2388 KB Output is correct
84 Correct 1 ms 340 KB Output is correct
85 Correct 2 ms 2132 KB Output is correct
86 Correct 1 ms 340 KB Output is correct
87 Correct 2 ms 2476 KB Output is correct
88 Correct 2 ms 2516 KB Output is correct
89 Correct 1 ms 340 KB Output is correct
90 Correct 3 ms 936 KB Output is correct
91 Correct 3 ms 980 KB Output is correct
92 Correct 3 ms 980 KB Output is correct
93 Correct 2 ms 852 KB Output is correct
94 Correct 2 ms 852 KB Output is correct
95 Correct 2 ms 2676 KB Output is correct
96 Correct 2 ms 2644 KB Output is correct
97 Correct 2 ms 2732 KB Output is correct
98 Correct 2 ms 2644 KB Output is correct
99 Correct 2 ms 2740 KB Output is correct
100 Correct 2 ms 2644 KB Output is correct
101 Correct 2 ms 2608 KB Output is correct
102 Correct 1 ms 340 KB Output is correct
103 Correct 2 ms 2644 KB Output is correct
104 Correct 1 ms 340 KB Output is correct
105 Correct 2 ms 2644 KB Output is correct
106 Correct 1 ms 340 KB Output is correct
107 Correct 9 ms 2516 KB Output is correct
108 Correct 4 ms 1108 KB Output is correct
109 Correct 11 ms 3156 KB Output is correct
110 Correct 8 ms 1876 KB Output is correct
111 Correct 11 ms 2724 KB Output is correct
112 Correct 4 ms 2900 KB Output is correct
113 Correct 5 ms 2740 KB Output is correct
114 Correct 5 ms 2388 KB Output is correct
115 Correct 3 ms 2260 KB Output is correct
116 Correct 5 ms 2900 KB Output is correct
117 Correct 4 ms 3128 KB Output is correct
118 Correct 21 ms 5244 KB Output is correct
119 Correct 19 ms 6096 KB Output is correct
120 Correct 29 ms 6948 KB Output is correct
121 Correct 23 ms 4932 KB Output is correct
122 Correct 24 ms 5068 KB Output is correct
123 Correct 23 ms 5024 KB Output is correct
124 Correct 18 ms 5036 KB Output is correct
125 Correct 17 ms 5020 KB Output is correct
126 Correct 5 ms 3540 KB Output is correct
127 Correct 6 ms 3508 KB Output is correct
128 Correct 6 ms 3540 KB Output is correct
129 Correct 6 ms 3668 KB Output is correct
130 Correct 7 ms 3540 KB Output is correct
131 Correct 6 ms 3576 KB Output is correct
132 Correct 34 ms 7348 KB Output is correct
133 Correct 33 ms 7400 KB Output is correct
134 Correct 32 ms 7360 KB Output is correct
135 Correct 6 ms 3484 KB Output is correct
136 Execution timed out 1604 ms 422248 KB Time limit exceeded
137 Halted 0 ms 0 KB -