답안 #1049490

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1049490 2024-08-08T19:34:48 Z rainboy Bring Down the Grading Server (CEOI23_gradingserver) C
85 / 100
4000 ms 89516 KB
#include <stdio.h>
#include <stdlib.h>
 
#define M	1000000
#define MD	0x7fffffff
#define X	123456789

long long min(long long a, long long b) { return a < b ? a : b; }
 
long long *ek[M]; int *ev[M], eo[M];
 
void init() {
	int h;

	for (h = 0; h < M; h++) {
		ek[h] = (long long *) malloc(2 * sizeof *ek[h]);
		ev[h] = (int *) malloc(2 * sizeof *ev[h]);
	}
}

int hash(long long k) {
	int k1 = k / MD, k2 = k % MD;

	return ((long long) k1 * X + k2) % MD * X % MD % M;
}

void put(long long k, int v) {
	int h = hash(k), o = eo[h]++;

	if (o >= 2 && (o & o - 1) == 0) {
		ek[h] = (long long *) realloc(ek[h], o * 2 * sizeof *ek[h]);
		ev[h] = (int *) realloc(ev[h], o * 2 * sizeof *ev[h]);
	}
	ek[h][o] = k, ev[h][o] = v;
}

int get(long long k) {
	int h = hash(k), o;

	for (o = eo[h]; o--; )
		if (ek[h][o] == k)
			return ev[h][o];
	return -1;
}

int c, cnt;

int solve(long long x1, long long y1, long long x2, long long y2) {
	long long y, z;
	int w;
 
	if (x1 + y1 * c <= 0)
		return 0;
	if (x2 + y2 * c <= 0)
		return 1;
	if (x1 <= 0) {
		if (x2 > 0) {
			if (x2 >= c)
				return 0;
			if (y2 > 0) {
				if (x2 - x1 >= c)
					return 0;
				return !solve(x2, y2, x1 + c, y1 - 1);
			}
			y = -x1 / (c - x2) + 1;
			return y <= y1 && solve(x1 + y * (c - x2), y1 - y, x2, y2);
		} else {
			y = min(-x1 / c + 1, -x2 / c + 1);
			return solve(x1 + y * c, y1 - y, x2 + y * c, y2 - y);
		}
	}
	if (x1 >= x2 && (x1 >= c || y1 > 0))
		return 1;
	if (x2 >= c)
		return !solve(x2 - x1, y2, x1, y1);
	if (x1 + y1 * (c - x2) >= c)
		return 1;
	z = x1 >= 0 && x1 <= c && y1 >= 0 && y1 <= c && x2 >= 0 && x2 <= c && y2 >= 0 && y2 <= c ? (((long long) x1 * (c + 1) + y1) * (c + 1) + x2) * (c + 1) + y2 : -1;
	z = -1;
	if (z != -1 && (w = get(z)) != -1)
		return w;
	if (cnt < M)
		cnt++;
	else
		z = -1;
	if (!solve(x2 - x1, y2, x1, y1)) {
		if (z != -1)
			put(z, 1);
		return 1;
	}
	w = y1 > 0 && solve(x1 + c - x2, y1 - 1, x2, y2);
	if (z != -1)
		put(z, w);
	return w;
}
 
int main() {
	int t;
 
	init();
	scanf("%d%d", &c, &t);
	while (t--) {
		long long x1, y1, x2, y2;
 
		scanf("%lld%lld%lld%lld", &x1, &y2, &x2, &y1), x1 -= y1 * c, x2 -= y2 * c;
		printf(solve(x1, y1, x2, y2) ? "YES\n" : "NO\n");
	}
	return 0;
}

Compilation message

gradingserver.c: In function 'put':
gradingserver.c:30:23: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
   30 |  if (o >= 2 && (o & o - 1) == 0) {
      |                     ~~^~~
gradingserver.c: In function 'main':
gradingserver.c:101:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  101 |  scanf("%d%d", &c, &t);
      |  ^~~~~~~~~~~~~~~~~~~~~
gradingserver.c:105:3: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  105 |   scanf("%lld%lld%lld%lld", &x1, &y2, &x2, &y1), x1 -= y1 * c, x2 -= y2 * c;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 64 ms 79164 KB Output is correct
2 Correct 39 ms 79188 KB Output is correct
3 Correct 39 ms 79148 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 45 ms 79168 KB Output is correct
2 Correct 112 ms 82048 KB Output is correct
3 Correct 91 ms 82004 KB Output is correct
4 Correct 83 ms 81912 KB Output is correct
5 Correct 87 ms 81192 KB Output is correct
6 Correct 89 ms 81228 KB Output is correct
7 Correct 99 ms 81240 KB Output is correct
8 Correct 117 ms 81232 KB Output is correct
9 Correct 82 ms 81268 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 45 ms 79168 KB Output is correct
2 Correct 112 ms 82048 KB Output is correct
3 Correct 91 ms 82004 KB Output is correct
4 Correct 83 ms 81912 KB Output is correct
5 Correct 87 ms 81192 KB Output is correct
6 Correct 89 ms 81228 KB Output is correct
7 Correct 99 ms 81240 KB Output is correct
8 Correct 117 ms 81232 KB Output is correct
9 Correct 82 ms 81268 KB Output is correct
10 Correct 40 ms 79196 KB Output is correct
11 Correct 89 ms 81120 KB Output is correct
12 Correct 94 ms 81100 KB Output is correct
13 Correct 86 ms 81236 KB Output is correct
14 Correct 83 ms 81232 KB Output is correct
15 Correct 90 ms 81276 KB Output is correct
16 Correct 88 ms 81160 KB Output is correct
17 Correct 86 ms 81232 KB Output is correct
18 Correct 82 ms 81236 KB Output is correct
19 Correct 110 ms 81488 KB Output is correct
20 Correct 92 ms 81484 KB Output is correct
21 Correct 112 ms 81492 KB Output is correct
22 Correct 99 ms 81492 KB Output is correct
23 Correct 94 ms 81488 KB Output is correct
24 Correct 88 ms 81488 KB Output is correct
25 Correct 89 ms 81460 KB Output is correct
26 Correct 86 ms 81488 KB Output is correct
27 Correct 89 ms 81476 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 130 ms 86788 KB Output is correct
2 Correct 131 ms 86392 KB Output is correct
3 Correct 118 ms 86612 KB Output is correct
4 Correct 40 ms 79196 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 45 ms 79168 KB Output is correct
2 Correct 112 ms 82048 KB Output is correct
3 Correct 91 ms 82004 KB Output is correct
4 Correct 83 ms 81912 KB Output is correct
5 Correct 87 ms 81192 KB Output is correct
6 Correct 89 ms 81228 KB Output is correct
7 Correct 99 ms 81240 KB Output is correct
8 Correct 117 ms 81232 KB Output is correct
9 Correct 82 ms 81268 KB Output is correct
10 Correct 40 ms 79196 KB Output is correct
11 Correct 89 ms 81120 KB Output is correct
12 Correct 94 ms 81100 KB Output is correct
13 Correct 86 ms 81236 KB Output is correct
14 Correct 83 ms 81232 KB Output is correct
15 Correct 90 ms 81276 KB Output is correct
16 Correct 88 ms 81160 KB Output is correct
17 Correct 86 ms 81232 KB Output is correct
18 Correct 82 ms 81236 KB Output is correct
19 Correct 110 ms 81488 KB Output is correct
20 Correct 92 ms 81484 KB Output is correct
21 Correct 112 ms 81492 KB Output is correct
22 Correct 99 ms 81492 KB Output is correct
23 Correct 94 ms 81488 KB Output is correct
24 Correct 88 ms 81488 KB Output is correct
25 Correct 89 ms 81460 KB Output is correct
26 Correct 86 ms 81488 KB Output is correct
27 Correct 89 ms 81476 KB Output is correct
28 Correct 40 ms 79184 KB Output is correct
29 Correct 82 ms 81232 KB Output is correct
30 Correct 84 ms 81232 KB Output is correct
31 Correct 87 ms 81236 KB Output is correct
32 Correct 83 ms 81236 KB Output is correct
33 Correct 92 ms 81236 KB Output is correct
34 Correct 89 ms 81240 KB Output is correct
35 Correct 102 ms 81168 KB Output is correct
36 Correct 81 ms 81236 KB Output is correct
37 Correct 90 ms 81492 KB Output is correct
38 Correct 89 ms 81492 KB Output is correct
39 Correct 98 ms 81488 KB Output is correct
40 Correct 88 ms 81448 KB Output is correct
41 Correct 96 ms 81492 KB Output is correct
42 Correct 88 ms 81528 KB Output is correct
43 Correct 93 ms 81492 KB Output is correct
44 Correct 86 ms 81556 KB Output is correct
45 Correct 109 ms 81384 KB Output is correct
46 Correct 110 ms 81416 KB Output is correct
47 Correct 93 ms 81572 KB Output is correct
48 Correct 126 ms 81472 KB Output is correct
49 Correct 93 ms 81584 KB Output is correct
50 Correct 98 ms 82100 KB Output is correct
51 Correct 106 ms 81492 KB Output is correct
52 Correct 85 ms 81492 KB Output is correct
53 Correct 85 ms 81608 KB Output is correct
54 Correct 92 ms 81424 KB Output is correct
55 Correct 231 ms 81748 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 45 ms 79168 KB Output is correct
2 Correct 112 ms 82048 KB Output is correct
3 Correct 91 ms 82004 KB Output is correct
4 Correct 83 ms 81912 KB Output is correct
5 Correct 87 ms 81192 KB Output is correct
6 Correct 89 ms 81228 KB Output is correct
7 Correct 99 ms 81240 KB Output is correct
8 Correct 117 ms 81232 KB Output is correct
9 Correct 82 ms 81268 KB Output is correct
10 Correct 40 ms 79196 KB Output is correct
11 Correct 89 ms 81120 KB Output is correct
12 Correct 94 ms 81100 KB Output is correct
13 Correct 86 ms 81236 KB Output is correct
14 Correct 83 ms 81232 KB Output is correct
15 Correct 90 ms 81276 KB Output is correct
16 Correct 88 ms 81160 KB Output is correct
17 Correct 86 ms 81232 KB Output is correct
18 Correct 82 ms 81236 KB Output is correct
19 Correct 110 ms 81488 KB Output is correct
20 Correct 92 ms 81484 KB Output is correct
21 Correct 112 ms 81492 KB Output is correct
22 Correct 99 ms 81492 KB Output is correct
23 Correct 94 ms 81488 KB Output is correct
24 Correct 88 ms 81488 KB Output is correct
25 Correct 89 ms 81460 KB Output is correct
26 Correct 86 ms 81488 KB Output is correct
27 Correct 89 ms 81476 KB Output is correct
28 Correct 130 ms 86788 KB Output is correct
29 Correct 131 ms 86392 KB Output is correct
30 Correct 118 ms 86612 KB Output is correct
31 Correct 40 ms 79196 KB Output is correct
32 Correct 113 ms 83600 KB Output is correct
33 Correct 120 ms 83280 KB Output is correct
34 Correct 113 ms 83540 KB Output is correct
35 Correct 43 ms 79200 KB Output is correct
36 Correct 40 ms 79192 KB Output is correct
37 Correct 90 ms 81232 KB Output is correct
38 Correct 88 ms 81236 KB Output is correct
39 Correct 86 ms 81236 KB Output is correct
40 Correct 85 ms 81188 KB Output is correct
41 Correct 86 ms 81236 KB Output is correct
42 Correct 96 ms 81120 KB Output is correct
43 Correct 94 ms 81236 KB Output is correct
44 Correct 81 ms 80980 KB Output is correct
45 Correct 94 ms 81236 KB Output is correct
46 Correct 95 ms 80980 KB Output is correct
47 Correct 107 ms 81056 KB Output is correct
48 Correct 88 ms 81232 KB Output is correct
49 Correct 88 ms 80976 KB Output is correct
50 Correct 114 ms 80724 KB Output is correct
51 Correct 87 ms 80468 KB Output is correct
52 Correct 93 ms 80704 KB Output is correct
53 Correct 87 ms 80976 KB Output is correct
54 Correct 39 ms 79184 KB Output is correct
55 Correct 85 ms 81000 KB Output is correct
56 Correct 85 ms 80976 KB Output is correct
57 Correct 105 ms 81380 KB Output is correct
58 Correct 91 ms 81756 KB Output is correct
59 Correct 125 ms 81232 KB Output is correct
60 Correct 121 ms 83332 KB Output is correct
61 Correct 115 ms 81916 KB Output is correct
62 Correct 117 ms 83792 KB Output is correct
63 Correct 140 ms 86256 KB Output is correct
64 Correct 114 ms 83028 KB Output is correct
65 Correct 114 ms 84560 KB Output is correct
66 Correct 218 ms 80288 KB Output is correct
67 Correct 226 ms 82000 KB Output is correct
68 Correct 128 ms 84676 KB Output is correct
69 Correct 121 ms 84040 KB Output is correct
70 Correct 141 ms 83912 KB Output is correct
71 Correct 719 ms 84816 KB Output is correct
72 Correct 158 ms 83440 KB Output is correct
73 Correct 724 ms 83444 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 45 ms 79168 KB Output is correct
2 Correct 112 ms 82048 KB Output is correct
3 Correct 91 ms 82004 KB Output is correct
4 Correct 83 ms 81912 KB Output is correct
5 Correct 87 ms 81192 KB Output is correct
6 Correct 89 ms 81228 KB Output is correct
7 Correct 99 ms 81240 KB Output is correct
8 Correct 117 ms 81232 KB Output is correct
9 Correct 82 ms 81268 KB Output is correct
10 Correct 45 ms 79184 KB Output is correct
11 Correct 85 ms 81264 KB Output is correct
12 Correct 89 ms 80724 KB Output is correct
13 Correct 86 ms 81236 KB Output is correct
14 Correct 87 ms 81276 KB Output is correct
15 Correct 87 ms 81236 KB Output is correct
16 Correct 87 ms 81208 KB Output is correct
17 Correct 84 ms 80980 KB Output is correct
18 Correct 87 ms 81396 KB Output is correct
19 Correct 105 ms 81688 KB Output is correct
20 Correct 463 ms 82940 KB Output is correct
21 Correct 751 ms 84872 KB Output is correct
22 Correct 949 ms 84808 KB Output is correct
23 Correct 332 ms 86364 KB Output is correct
24 Correct 332 ms 86388 KB Output is correct
25 Correct 171 ms 85840 KB Output is correct
26 Correct 117 ms 86352 KB Output is correct
27 Correct 843 ms 85636 KB Output is correct
28 Correct 1529 ms 86352 KB Output is correct
29 Correct 500 ms 84560 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 45 ms 79168 KB Output is correct
2 Correct 112 ms 82048 KB Output is correct
3 Correct 91 ms 82004 KB Output is correct
4 Correct 83 ms 81912 KB Output is correct
5 Correct 87 ms 81192 KB Output is correct
6 Correct 89 ms 81228 KB Output is correct
7 Correct 99 ms 81240 KB Output is correct
8 Correct 117 ms 81232 KB Output is correct
9 Correct 82 ms 81268 KB Output is correct
10 Correct 40 ms 79196 KB Output is correct
11 Correct 89 ms 81120 KB Output is correct
12 Correct 94 ms 81100 KB Output is correct
13 Correct 86 ms 81236 KB Output is correct
14 Correct 83 ms 81232 KB Output is correct
15 Correct 90 ms 81276 KB Output is correct
16 Correct 88 ms 81160 KB Output is correct
17 Correct 86 ms 81232 KB Output is correct
18 Correct 82 ms 81236 KB Output is correct
19 Correct 110 ms 81488 KB Output is correct
20 Correct 92 ms 81484 KB Output is correct
21 Correct 112 ms 81492 KB Output is correct
22 Correct 99 ms 81492 KB Output is correct
23 Correct 94 ms 81488 KB Output is correct
24 Correct 88 ms 81488 KB Output is correct
25 Correct 89 ms 81460 KB Output is correct
26 Correct 86 ms 81488 KB Output is correct
27 Correct 89 ms 81476 KB Output is correct
28 Correct 130 ms 86788 KB Output is correct
29 Correct 131 ms 86392 KB Output is correct
30 Correct 118 ms 86612 KB Output is correct
31 Correct 40 ms 79196 KB Output is correct
32 Correct 40 ms 79184 KB Output is correct
33 Correct 82 ms 81232 KB Output is correct
34 Correct 84 ms 81232 KB Output is correct
35 Correct 87 ms 81236 KB Output is correct
36 Correct 83 ms 81236 KB Output is correct
37 Correct 92 ms 81236 KB Output is correct
38 Correct 89 ms 81240 KB Output is correct
39 Correct 102 ms 81168 KB Output is correct
40 Correct 81 ms 81236 KB Output is correct
41 Correct 90 ms 81492 KB Output is correct
42 Correct 89 ms 81492 KB Output is correct
43 Correct 98 ms 81488 KB Output is correct
44 Correct 88 ms 81448 KB Output is correct
45 Correct 96 ms 81492 KB Output is correct
46 Correct 88 ms 81528 KB Output is correct
47 Correct 93 ms 81492 KB Output is correct
48 Correct 86 ms 81556 KB Output is correct
49 Correct 109 ms 81384 KB Output is correct
50 Correct 110 ms 81416 KB Output is correct
51 Correct 93 ms 81572 KB Output is correct
52 Correct 126 ms 81472 KB Output is correct
53 Correct 93 ms 81584 KB Output is correct
54 Correct 98 ms 82100 KB Output is correct
55 Correct 106 ms 81492 KB Output is correct
56 Correct 85 ms 81492 KB Output is correct
57 Correct 85 ms 81608 KB Output is correct
58 Correct 92 ms 81424 KB Output is correct
59 Correct 231 ms 81748 KB Output is correct
60 Correct 113 ms 83600 KB Output is correct
61 Correct 120 ms 83280 KB Output is correct
62 Correct 113 ms 83540 KB Output is correct
63 Correct 43 ms 79200 KB Output is correct
64 Correct 40 ms 79192 KB Output is correct
65 Correct 90 ms 81232 KB Output is correct
66 Correct 88 ms 81236 KB Output is correct
67 Correct 86 ms 81236 KB Output is correct
68 Correct 85 ms 81188 KB Output is correct
69 Correct 86 ms 81236 KB Output is correct
70 Correct 96 ms 81120 KB Output is correct
71 Correct 94 ms 81236 KB Output is correct
72 Correct 81 ms 80980 KB Output is correct
73 Correct 94 ms 81236 KB Output is correct
74 Correct 95 ms 80980 KB Output is correct
75 Correct 107 ms 81056 KB Output is correct
76 Correct 88 ms 81232 KB Output is correct
77 Correct 88 ms 80976 KB Output is correct
78 Correct 114 ms 80724 KB Output is correct
79 Correct 87 ms 80468 KB Output is correct
80 Correct 93 ms 80704 KB Output is correct
81 Correct 87 ms 80976 KB Output is correct
82 Correct 39 ms 79184 KB Output is correct
83 Correct 85 ms 81000 KB Output is correct
84 Correct 85 ms 80976 KB Output is correct
85 Correct 105 ms 81380 KB Output is correct
86 Correct 91 ms 81756 KB Output is correct
87 Correct 125 ms 81232 KB Output is correct
88 Correct 121 ms 83332 KB Output is correct
89 Correct 115 ms 81916 KB Output is correct
90 Correct 117 ms 83792 KB Output is correct
91 Correct 140 ms 86256 KB Output is correct
92 Correct 114 ms 83028 KB Output is correct
93 Correct 114 ms 84560 KB Output is correct
94 Correct 218 ms 80288 KB Output is correct
95 Correct 226 ms 82000 KB Output is correct
96 Correct 128 ms 84676 KB Output is correct
97 Correct 121 ms 84040 KB Output is correct
98 Correct 141 ms 83912 KB Output is correct
99 Correct 719 ms 84816 KB Output is correct
100 Correct 158 ms 83440 KB Output is correct
101 Correct 724 ms 83444 KB Output is correct
102 Correct 45 ms 79184 KB Output is correct
103 Correct 85 ms 81264 KB Output is correct
104 Correct 89 ms 80724 KB Output is correct
105 Correct 86 ms 81236 KB Output is correct
106 Correct 87 ms 81276 KB Output is correct
107 Correct 87 ms 81236 KB Output is correct
108 Correct 87 ms 81208 KB Output is correct
109 Correct 84 ms 80980 KB Output is correct
110 Correct 87 ms 81396 KB Output is correct
111 Correct 105 ms 81688 KB Output is correct
112 Correct 463 ms 82940 KB Output is correct
113 Correct 751 ms 84872 KB Output is correct
114 Correct 949 ms 84808 KB Output is correct
115 Correct 332 ms 86364 KB Output is correct
116 Correct 332 ms 86388 KB Output is correct
117 Correct 171 ms 85840 KB Output is correct
118 Correct 117 ms 86352 KB Output is correct
119 Correct 843 ms 85636 KB Output is correct
120 Correct 1529 ms 86352 KB Output is correct
121 Correct 500 ms 84560 KB Output is correct
122 Correct 111 ms 89308 KB Output is correct
123 Correct 121 ms 89136 KB Output is correct
124 Correct 110 ms 89516 KB Output is correct
125 Correct 43 ms 79184 KB Output is correct
126 Correct 39 ms 79184 KB Output is correct
127 Correct 83 ms 82488 KB Output is correct
128 Correct 97 ms 80904 KB Output is correct
129 Correct 96 ms 80912 KB Output is correct
130 Correct 94 ms 80960 KB Output is correct
131 Correct 116 ms 80944 KB Output is correct
132 Correct 89 ms 80860 KB Output is correct
133 Correct 94 ms 81216 KB Output is correct
134 Correct 89 ms 80896 KB Output is correct
135 Correct 96 ms 81272 KB Output is correct
136 Correct 89 ms 81268 KB Output is correct
137 Correct 97 ms 81124 KB Output is correct
138 Correct 92 ms 81256 KB Output is correct
139 Correct 89 ms 81260 KB Output is correct
140 Correct 91 ms 81256 KB Output is correct
141 Correct 119 ms 81232 KB Output is correct
142 Correct 120 ms 81236 KB Output is correct
143 Correct 85 ms 81236 KB Output is correct
144 Correct 40 ms 79184 KB Output is correct
145 Correct 148 ms 81236 KB Output is correct
146 Correct 93 ms 81312 KB Output is correct
147 Correct 105 ms 81492 KB Output is correct
148 Correct 94 ms 81364 KB Output is correct
149 Correct 126 ms 81416 KB Output is correct
150 Correct 157 ms 83124 KB Output is correct
151 Correct 115 ms 83280 KB Output is correct
152 Correct 175 ms 83136 KB Output is correct
153 Correct 114 ms 83280 KB Output is correct
154 Correct 116 ms 83240 KB Output is correct
155 Correct 112 ms 83280 KB Output is correct
156 Correct 223 ms 81536 KB Output is correct
157 Correct 218 ms 81412 KB Output is correct
158 Correct 113 ms 83796 KB Output is correct
159 Correct 132 ms 83280 KB Output is correct
160 Correct 170 ms 82264 KB Output is correct
161 Correct 772 ms 82580 KB Output is correct
162 Correct 140 ms 83024 KB Output is correct
163 Correct 745 ms 81996 KB Output is correct
164 Correct 136 ms 81492 KB Output is correct
165 Correct 90 ms 81548 KB Output is correct
166 Correct 102 ms 81492 KB Output is correct
167 Correct 85 ms 81284 KB Output is correct
168 Correct 221 ms 81488 KB Output is correct
169 Correct 99 ms 81492 KB Output is correct
170 Correct 487 ms 81732 KB Output is correct
171 Correct 746 ms 81708 KB Output is correct
172 Correct 914 ms 81804 KB Output is correct
173 Correct 331 ms 82516 KB Output is correct
174 Correct 340 ms 82284 KB Output is correct
175 Correct 193 ms 82260 KB Output is correct
176 Correct 121 ms 82320 KB Output is correct
177 Correct 829 ms 82504 KB Output is correct
178 Correct 1451 ms 82164 KB Output is correct
179 Correct 498 ms 81880 KB Output is correct
180 Correct 131 ms 83292 KB Output is correct
181 Correct 116 ms 83320 KB Output is correct
182 Correct 125 ms 84304 KB Output is correct
183 Correct 127 ms 84564 KB Output is correct
184 Correct 116 ms 84048 KB Output is correct
185 Execution timed out 4034 ms 81228 KB Time limit exceeded
186 Halted 0 ms 0 KB -