답안 #597671

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
597671 2022-07-16T14:07:32 Z cfalas 벽 칠하기 (APIO20_paint) C++17
40 / 100
1500 ms 39944 KB
#include<bits/stdc++.h>
using namespace std;
#include "paint.h"
#define mp make_pair
#define INF 10000000
#define MOD 1000000007
#define MID ((l+r)/2)
#define HASHMOD 2305843009213693951
#define ll long long
#define ull unsigned long long
#define F first
#define S second
typedef pair<ll, ll> ii;
typedef pair<ii, int> iii;
typedef vector<int> vi;
typedef vector<ii> vii;
typedef map<int, int> mii;

#define EPS 1e-6
#define FOR(i,n) for(int i=0;i<((int)(n));i++)
#define FORi(i,a,b) for(int i=((int)(a));i<((int)(b));i++)
#define FOA(v, a) for(auto v : a)

int M, N;
vi c;

map<set<int>, int> mm;
vector<set<int> > mmr(1, set<int>());
int sc=1;

struct myset{
	set<int> val;

	void insert(int x){
		val.insert(x);
	}

	int i(){
		if(mm.count(val)==0){
			mmr.push_back(val);
			mm[val] = sc++;
		}
		return mm[val];
	}

	myset(int x){
		val = mmr[x];
	}
	myset(set<int> v){
		val = v;
		if(mm.count(val)==0){
			mmr.push_back(val);
			mm[val] = sc++;
		}
	}
	myset(){}
};

map<int, vector<int>> f;
struct seg{
	int val;
	seg *L, *R;

	int merge(int a, int as, int b){
		myset ans;
		myset aa=myset(a), bb=myset(b);
		FOA(v,aa.val){
			if(bb.val.count((v + as)%M)) ans.insert(v);
		}
		return ans.i();
	}

	void build(int l=0, int r=N-1){
		if(l==r){
			set<int> cc;
			FOA(v, f[c[l]]){
				cc.insert(v);
			}
			val = myset(cc).i();
		}
		else{
			L = new seg;
			R = new seg;

			L->build(l,MID);
			R->build(MID+1,r);

			val = merge(L->val, MID-l+1, R->val);
		}
	}

	int query(int rl, int rr, int l=0, int r=N-1){
		if(rl<=l && r<=rr) return val;
		else if(rr<l || r<rl) return 0;
		else{
			int sl = L->query(rl,rr,l,MID);
			int sr = R->query(rl,rr,MID+1,r);
			if(rr<=MID){
				/*
				cout<<"Return left "<<l<<" "<<r<<": ";
				FOA(v,sl) cout<<v<<" ";
				cout<<endl;*/
				return sl;
			}
			if(rl>MID){
				/*
				cout<<"Return right "<<l<<" "<<r<<": ";
				FOA(v,sr) cout<<v<<" ";
				cout<<endl;*/
				return sr;
			}
			//cout<<"merge "<<l<<" "<<r<<": ";
			int qq;
			if(l<=rl) qq = merge(sl, MID-rl+1, sr);
			else qq = merge(sl, MID-l+1, sr);
			/*
			FOA(v, sl) cout<<v<<" ";
			cout<<" | ";
			FOA(v, sr) cout<<v<<" ";
			cout<<" | ";
			FOA(v, qq) cout<<v<<" ";
			cout<<endl;*/
			return qq;
		}
	}

	/*
	void print(int l=0, int r=N-1){
		cout<<l<<" "<<r<<": ";
		FOA(v, val) cout<<v<<" ";
		cout<<endl;
		if(l!=r){
			L->print(l, MID);
			R->print(MID+1,r);
		}
	}*/
};

int minimumInstructions(int n, int m, int K, std::vector<int> C, 
						vector<int> A, vector<std::vector<int>> B) {
	mm[{}] = 0;
	M = m;
	N = n;
	c = C;
	FOR(i,M){
		FOA(v, B[i]){
			f[v].push_back(i);
		}
	}
	seg s;
	s.build();
	//s.print();
	set<int> ok;
	FOR(j,N-M+1){
		int cc = s.query(j, j+M-1);
		if(cc!=0){
			ok.insert(j);
		}
	}
	if(!ok.count(0)) return -1;
	int p=0;
	int cp=M;
	int ans = 1;
	while(cp<N){
		//cout<<p<<" "<<cp<<endl;
		while(!ok.count(cp)) cp--;
		if(cp<=p) return -1;
		p = cp;
		cp+=M;
		ans++;
	}
  return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 300 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 0 ms 300 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 1 ms 340 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 340 KB Output is correct
13 Correct 2 ms 468 KB Output is correct
14 Correct 2 ms 428 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 2 ms 468 KB Output is correct
17 Correct 2 ms 468 KB Output is correct
18 Correct 2 ms 468 KB Output is correct
19 Correct 1 ms 468 KB Output is correct
20 Correct 1 ms 468 KB Output is correct
21 Correct 1 ms 468 KB Output is correct
22 Correct 67 ms 12676 KB Output is correct
23 Correct 59 ms 12640 KB Output is correct
24 Correct 58 ms 12584 KB Output is correct
25 Correct 19 ms 2700 KB Output is correct
26 Correct 16 ms 2728 KB Output is correct
27 Correct 18 ms 2216 KB Output is correct
28 Correct 14 ms 1844 KB Output is correct
29 Correct 13 ms 1832 KB Output is correct
30 Correct 13 ms 1832 KB Output is correct
31 Correct 76 ms 5800 KB Output is correct
32 Correct 80 ms 5788 KB Output is correct
33 Correct 82 ms 5724 KB Output is correct
34 Correct 73 ms 5760 KB Output is correct
35 Correct 80 ms 5692 KB Output is correct
36 Correct 86 ms 5772 KB Output is correct
37 Correct 120 ms 14788 KB Output is correct
38 Correct 126 ms 14788 KB Output is correct
39 Correct 110 ms 14796 KB Output is correct
40 Correct 72 ms 11444 KB Output is correct
41 Correct 45 ms 7244 KB Output is correct
42 Correct 72 ms 10008 KB Output is correct
43 Correct 43 ms 5536 KB Output is correct
44 Correct 41 ms 4868 KB Output is correct
45 Correct 65 ms 7868 KB Output is correct
46 Correct 350 ms 36036 KB Output is correct
47 Correct 237 ms 21136 KB Output is correct
48 Correct 175 ms 27780 KB Output is correct
49 Correct 208 ms 26196 KB Output is correct
50 Correct 268 ms 26340 KB Output is correct
51 Correct 232 ms 20852 KB Output is correct
52 Correct 83 ms 12608 KB Output is correct
53 Correct 82 ms 12612 KB Output is correct
54 Correct 72 ms 10164 KB Output is correct
55 Correct 66 ms 8428 KB Output is correct
56 Correct 64 ms 7928 KB Output is correct
57 Correct 85 ms 7856 KB Output is correct
58 Correct 456 ms 39944 KB Output is correct
59 Correct 458 ms 39804 KB Output is correct
60 Correct 460 ms 39836 KB Output is correct
61 Correct 447 ms 39856 KB Output is correct
62 Correct 455 ms 39876 KB Output is correct
63 Correct 463 ms 39908 KB Output is correct
64 Correct 395 ms 33504 KB Output is correct
65 Correct 400 ms 33580 KB Output is correct
66 Correct 375 ms 33364 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 300 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 0 ms 300 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 1 ms 340 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 340 KB Output is correct
13 Correct 2 ms 468 KB Output is correct
14 Correct 2 ms 428 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 2 ms 468 KB Output is correct
17 Correct 2 ms 468 KB Output is correct
18 Correct 2 ms 468 KB Output is correct
19 Correct 1 ms 468 KB Output is correct
20 Correct 1 ms 468 KB Output is correct
21 Correct 1 ms 468 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 212 KB Output is correct
26 Correct 1 ms 300 KB Output is correct
27 Correct 1 ms 296 KB Output is correct
28 Correct 9 ms 344 KB Output is correct
29 Correct 3 ms 340 KB Output is correct
30 Correct 2 ms 340 KB Output is correct
31 Correct 2 ms 340 KB Output is correct
32 Correct 2 ms 340 KB Output is correct
33 Correct 1 ms 436 KB Output is correct
34 Correct 2 ms 340 KB Output is correct
35 Correct 2 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 1 ms 436 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 1 ms 340 KB Output is correct
40 Correct 1 ms 468 KB Output is correct
41 Correct 1 ms 340 KB Output is correct
42 Correct 1 ms 340 KB Output is correct
43 Correct 1 ms 468 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 16 ms 396 KB Output is correct
46 Correct 5 ms 340 KB Output is correct
47 Correct 3 ms 340 KB Output is correct
48 Correct 3 ms 340 KB Output is correct
49 Correct 3 ms 340 KB Output is correct
50 Correct 2 ms 432 KB Output is correct
51 Correct 2 ms 428 KB Output is correct
52 Correct 2 ms 468 KB Output is correct
53 Correct 2 ms 468 KB Output is correct
54 Correct 2 ms 468 KB Output is correct
55 Correct 2 ms 468 KB Output is correct
56 Correct 1 ms 468 KB Output is correct
57 Correct 2 ms 468 KB Output is correct
58 Correct 3 ms 468 KB Output is correct
59 Correct 2 ms 432 KB Output is correct
60 Correct 1 ms 432 KB Output is correct
61 Correct 2 ms 432 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 0 ms 212 KB Output is correct
4 Correct 1 ms 300 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 0 ms 300 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 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 2 ms 428 KB Output is correct
17 Correct 2 ms 468 KB Output is correct
18 Correct 2 ms 468 KB Output is correct
19 Correct 2 ms 468 KB Output is correct
20 Correct 2 ms 468 KB Output is correct
21 Correct 1 ms 468 KB Output is correct
22 Correct 1 ms 468 KB Output is correct
23 Correct 1 ms 468 KB Output is correct
24 Correct 67 ms 12676 KB Output is correct
25 Correct 59 ms 12640 KB Output is correct
26 Correct 58 ms 12584 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 300 KB Output is correct
30 Correct 1 ms 296 KB Output is correct
31 Correct 9 ms 344 KB Output is correct
32 Correct 3 ms 340 KB Output is correct
33 Correct 2 ms 340 KB Output is correct
34 Correct 2 ms 340 KB Output is correct
35 Correct 2 ms 340 KB Output is correct
36 Correct 1 ms 436 KB Output is correct
37 Correct 2 ms 340 KB Output is correct
38 Correct 2 ms 340 KB Output is correct
39 Correct 1 ms 340 KB Output is correct
40 Correct 1 ms 436 KB Output is correct
41 Correct 1 ms 340 KB Output is correct
42 Correct 1 ms 340 KB Output is correct
43 Correct 1 ms 468 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 1 ms 340 KB Output is correct
46 Correct 1 ms 468 KB Output is correct
47 Correct 1 ms 340 KB Output is correct
48 Correct 16 ms 396 KB Output is correct
49 Correct 5 ms 340 KB Output is correct
50 Correct 3 ms 340 KB Output is correct
51 Correct 3 ms 340 KB Output is correct
52 Correct 3 ms 340 KB Output is correct
53 Correct 2 ms 432 KB Output is correct
54 Correct 2 ms 428 KB Output is correct
55 Correct 2 ms 468 KB Output is correct
56 Correct 2 ms 468 KB Output is correct
57 Correct 2 ms 468 KB Output is correct
58 Correct 2 ms 468 KB Output is correct
59 Correct 1 ms 468 KB Output is correct
60 Correct 2 ms 468 KB Output is correct
61 Correct 3 ms 468 KB Output is correct
62 Correct 2 ms 432 KB Output is correct
63 Correct 1 ms 432 KB Output is correct
64 Correct 2 ms 432 KB Output is correct
65 Correct 36 ms 376 KB Output is correct
66 Correct 21 ms 340 KB Output is correct
67 Correct 78 ms 360 KB Output is correct
68 Correct 41 ms 356 KB Output is correct
69 Correct 79 ms 364 KB Output is correct
70 Correct 12 ms 1748 KB Output is correct
71 Correct 15 ms 1876 KB Output is correct
72 Correct 15 ms 2008 KB Output is correct
73 Correct 6 ms 468 KB Output is correct
74 Correct 16 ms 1912 KB Output is correct
75 Correct 9 ms 1364 KB Output is correct
76 Correct 35 ms 7952 KB Output is correct
77 Correct 31 ms 9420 KB Output is correct
78 Correct 42 ms 10532 KB Output is correct
79 Correct 122 ms 340 KB Output is correct
80 Correct 124 ms 528 KB Output is correct
81 Correct 124 ms 392 KB Output is correct
82 Correct 124 ms 396 KB Output is correct
83 Correct 145 ms 400 KB Output is correct
84 Correct 19 ms 2252 KB Output is correct
85 Correct 18 ms 2184 KB Output is correct
86 Correct 18 ms 2292 KB Output is correct
87 Correct 16 ms 2204 KB Output is correct
88 Correct 17 ms 2212 KB Output is correct
89 Correct 17 ms 2212 KB Output is correct
90 Correct 64 ms 11340 KB Output is correct
91 Correct 75 ms 11236 KB Output is correct
92 Correct 63 ms 11200 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 0 ms 212 KB Output is correct
4 Correct 1 ms 300 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 0 ms 300 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 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 2 ms 428 KB Output is correct
17 Correct 2 ms 468 KB Output is correct
18 Correct 2 ms 468 KB Output is correct
19 Correct 2 ms 468 KB Output is correct
20 Correct 2 ms 468 KB Output is correct
21 Correct 1 ms 468 KB Output is correct
22 Correct 1 ms 468 KB Output is correct
23 Correct 1 ms 468 KB Output is correct
24 Correct 67 ms 12676 KB Output is correct
25 Correct 59 ms 12640 KB Output is correct
26 Correct 58 ms 12584 KB Output is correct
27 Correct 19 ms 2700 KB Output is correct
28 Correct 16 ms 2728 KB Output is correct
29 Correct 18 ms 2216 KB Output is correct
30 Correct 14 ms 1844 KB Output is correct
31 Correct 13 ms 1832 KB Output is correct
32 Correct 13 ms 1832 KB Output is correct
33 Correct 76 ms 5800 KB Output is correct
34 Correct 80 ms 5788 KB Output is correct
35 Correct 82 ms 5724 KB Output is correct
36 Correct 73 ms 5760 KB Output is correct
37 Correct 80 ms 5692 KB Output is correct
38 Correct 86 ms 5772 KB Output is correct
39 Correct 120 ms 14788 KB Output is correct
40 Correct 126 ms 14788 KB Output is correct
41 Correct 110 ms 14796 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 1 ms 212 KB Output is correct
44 Correct 1 ms 300 KB Output is correct
45 Correct 1 ms 296 KB Output is correct
46 Correct 9 ms 344 KB Output is correct
47 Correct 3 ms 340 KB Output is correct
48 Correct 2 ms 340 KB Output is correct
49 Correct 2 ms 340 KB Output is correct
50 Correct 2 ms 340 KB Output is correct
51 Correct 1 ms 436 KB Output is correct
52 Correct 2 ms 340 KB Output is correct
53 Correct 2 ms 340 KB Output is correct
54 Correct 1 ms 340 KB Output is correct
55 Correct 1 ms 436 KB Output is correct
56 Correct 1 ms 340 KB Output is correct
57 Correct 1 ms 340 KB Output is correct
58 Correct 1 ms 468 KB Output is correct
59 Correct 1 ms 340 KB Output is correct
60 Correct 1 ms 340 KB Output is correct
61 Correct 1 ms 468 KB Output is correct
62 Correct 1 ms 340 KB Output is correct
63 Correct 16 ms 396 KB Output is correct
64 Correct 5 ms 340 KB Output is correct
65 Correct 3 ms 340 KB Output is correct
66 Correct 3 ms 340 KB Output is correct
67 Correct 3 ms 340 KB Output is correct
68 Correct 2 ms 432 KB Output is correct
69 Correct 2 ms 428 KB Output is correct
70 Correct 2 ms 468 KB Output is correct
71 Correct 2 ms 468 KB Output is correct
72 Correct 2 ms 468 KB Output is correct
73 Correct 2 ms 468 KB Output is correct
74 Correct 1 ms 468 KB Output is correct
75 Correct 2 ms 468 KB Output is correct
76 Correct 3 ms 468 KB Output is correct
77 Correct 2 ms 432 KB Output is correct
78 Correct 1 ms 432 KB Output is correct
79 Correct 2 ms 432 KB Output is correct
80 Correct 36 ms 376 KB Output is correct
81 Correct 21 ms 340 KB Output is correct
82 Correct 78 ms 360 KB Output is correct
83 Correct 41 ms 356 KB Output is correct
84 Correct 79 ms 364 KB Output is correct
85 Correct 12 ms 1748 KB Output is correct
86 Correct 15 ms 1876 KB Output is correct
87 Correct 15 ms 2008 KB Output is correct
88 Correct 6 ms 468 KB Output is correct
89 Correct 16 ms 1912 KB Output is correct
90 Correct 9 ms 1364 KB Output is correct
91 Correct 35 ms 7952 KB Output is correct
92 Correct 31 ms 9420 KB Output is correct
93 Correct 42 ms 10532 KB Output is correct
94 Correct 122 ms 340 KB Output is correct
95 Correct 124 ms 528 KB Output is correct
96 Correct 124 ms 392 KB Output is correct
97 Correct 124 ms 396 KB Output is correct
98 Correct 145 ms 400 KB Output is correct
99 Correct 19 ms 2252 KB Output is correct
100 Correct 18 ms 2184 KB Output is correct
101 Correct 18 ms 2292 KB Output is correct
102 Correct 16 ms 2204 KB Output is correct
103 Correct 17 ms 2212 KB Output is correct
104 Correct 17 ms 2212 KB Output is correct
105 Correct 64 ms 11340 KB Output is correct
106 Correct 75 ms 11236 KB Output is correct
107 Correct 63 ms 11200 KB Output is correct
108 Correct 22 ms 2720 KB Output is correct
109 Execution timed out 1564 ms 1200 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 0 ms 212 KB Output is correct
4 Correct 1 ms 300 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 0 ms 300 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 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 2 ms 428 KB Output is correct
17 Correct 2 ms 468 KB Output is correct
18 Correct 2 ms 468 KB Output is correct
19 Correct 2 ms 468 KB Output is correct
20 Correct 2 ms 468 KB Output is correct
21 Correct 1 ms 468 KB Output is correct
22 Correct 1 ms 468 KB Output is correct
23 Correct 1 ms 468 KB Output is correct
24 Correct 67 ms 12676 KB Output is correct
25 Correct 59 ms 12640 KB Output is correct
26 Correct 58 ms 12584 KB Output is correct
27 Correct 19 ms 2700 KB Output is correct
28 Correct 16 ms 2728 KB Output is correct
29 Correct 18 ms 2216 KB Output is correct
30 Correct 14 ms 1844 KB Output is correct
31 Correct 13 ms 1832 KB Output is correct
32 Correct 13 ms 1832 KB Output is correct
33 Correct 76 ms 5800 KB Output is correct
34 Correct 80 ms 5788 KB Output is correct
35 Correct 82 ms 5724 KB Output is correct
36 Correct 73 ms 5760 KB Output is correct
37 Correct 80 ms 5692 KB Output is correct
38 Correct 86 ms 5772 KB Output is correct
39 Correct 120 ms 14788 KB Output is correct
40 Correct 126 ms 14788 KB Output is correct
41 Correct 110 ms 14796 KB Output is correct
42 Correct 72 ms 11444 KB Output is correct
43 Correct 45 ms 7244 KB Output is correct
44 Correct 72 ms 10008 KB Output is correct
45 Correct 43 ms 5536 KB Output is correct
46 Correct 41 ms 4868 KB Output is correct
47 Correct 65 ms 7868 KB Output is correct
48 Correct 350 ms 36036 KB Output is correct
49 Correct 237 ms 21136 KB Output is correct
50 Correct 175 ms 27780 KB Output is correct
51 Correct 208 ms 26196 KB Output is correct
52 Correct 268 ms 26340 KB Output is correct
53 Correct 232 ms 20852 KB Output is correct
54 Correct 83 ms 12608 KB Output is correct
55 Correct 82 ms 12612 KB Output is correct
56 Correct 72 ms 10164 KB Output is correct
57 Correct 66 ms 8428 KB Output is correct
58 Correct 64 ms 7928 KB Output is correct
59 Correct 85 ms 7856 KB Output is correct
60 Correct 456 ms 39944 KB Output is correct
61 Correct 458 ms 39804 KB Output is correct
62 Correct 460 ms 39836 KB Output is correct
63 Correct 447 ms 39856 KB Output is correct
64 Correct 455 ms 39876 KB Output is correct
65 Correct 463 ms 39908 KB Output is correct
66 Correct 395 ms 33504 KB Output is correct
67 Correct 400 ms 33580 KB Output is correct
68 Correct 375 ms 33364 KB Output is correct
69 Correct 1 ms 212 KB Output is correct
70 Correct 1 ms 212 KB Output is correct
71 Correct 1 ms 300 KB Output is correct
72 Correct 1 ms 296 KB Output is correct
73 Correct 9 ms 344 KB Output is correct
74 Correct 3 ms 340 KB Output is correct
75 Correct 2 ms 340 KB Output is correct
76 Correct 2 ms 340 KB Output is correct
77 Correct 2 ms 340 KB Output is correct
78 Correct 1 ms 436 KB Output is correct
79 Correct 2 ms 340 KB Output is correct
80 Correct 2 ms 340 KB Output is correct
81 Correct 1 ms 340 KB Output is correct
82 Correct 1 ms 436 KB Output is correct
83 Correct 1 ms 340 KB Output is correct
84 Correct 1 ms 340 KB Output is correct
85 Correct 1 ms 468 KB Output is correct
86 Correct 1 ms 340 KB Output is correct
87 Correct 1 ms 340 KB Output is correct
88 Correct 1 ms 468 KB Output is correct
89 Correct 1 ms 340 KB Output is correct
90 Correct 16 ms 396 KB Output is correct
91 Correct 5 ms 340 KB Output is correct
92 Correct 3 ms 340 KB Output is correct
93 Correct 3 ms 340 KB Output is correct
94 Correct 3 ms 340 KB Output is correct
95 Correct 2 ms 432 KB Output is correct
96 Correct 2 ms 428 KB Output is correct
97 Correct 2 ms 468 KB Output is correct
98 Correct 2 ms 468 KB Output is correct
99 Correct 2 ms 468 KB Output is correct
100 Correct 2 ms 468 KB Output is correct
101 Correct 1 ms 468 KB Output is correct
102 Correct 2 ms 468 KB Output is correct
103 Correct 3 ms 468 KB Output is correct
104 Correct 2 ms 432 KB Output is correct
105 Correct 1 ms 432 KB Output is correct
106 Correct 2 ms 432 KB Output is correct
107 Correct 36 ms 376 KB Output is correct
108 Correct 21 ms 340 KB Output is correct
109 Correct 78 ms 360 KB Output is correct
110 Correct 41 ms 356 KB Output is correct
111 Correct 79 ms 364 KB Output is correct
112 Correct 12 ms 1748 KB Output is correct
113 Correct 15 ms 1876 KB Output is correct
114 Correct 15 ms 2008 KB Output is correct
115 Correct 6 ms 468 KB Output is correct
116 Correct 16 ms 1912 KB Output is correct
117 Correct 9 ms 1364 KB Output is correct
118 Correct 35 ms 7952 KB Output is correct
119 Correct 31 ms 9420 KB Output is correct
120 Correct 42 ms 10532 KB Output is correct
121 Correct 122 ms 340 KB Output is correct
122 Correct 124 ms 528 KB Output is correct
123 Correct 124 ms 392 KB Output is correct
124 Correct 124 ms 396 KB Output is correct
125 Correct 145 ms 400 KB Output is correct
126 Correct 19 ms 2252 KB Output is correct
127 Correct 18 ms 2184 KB Output is correct
128 Correct 18 ms 2292 KB Output is correct
129 Correct 16 ms 2204 KB Output is correct
130 Correct 17 ms 2212 KB Output is correct
131 Correct 17 ms 2212 KB Output is correct
132 Correct 64 ms 11340 KB Output is correct
133 Correct 75 ms 11236 KB Output is correct
134 Correct 63 ms 11200 KB Output is correct
135 Correct 22 ms 2720 KB Output is correct
136 Execution timed out 1564 ms 1200 KB Time limit exceeded
137 Halted 0 ms 0 KB -