답안 #673154

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
673154 2022-12-19T20:30:27 Z US3RN4M3 Uplifting Excursion (BOI22_vault) C++17
90 / 100
5000 ms 15452 KB
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
const int mx = 305;
const int mx2 = mx*mx;
const ll inf = 1e18;
const ll ninf = -1e18;
ll m, l;
ll cnt_neg[mx];
ll cnt_pos[mx];
ll cnt_zero;
ll dp[mx2*2];
ll cnt_pos_good[mx];
ll cnt_pos_bad[mx];
ll cnt_neg_good[mx];
ll cnt_neg_bad[mx];
void solve(ll target, ll cur_cnt_sum) {
	if(target >= mx2 || target < -mx2) {
		cout << "impossible" << endl;
		return;
	}
	dp[mx2 + target] = cur_cnt_sum;
	for(int i = 1; i <= m; i++) {
		/* positive good */
		if(cnt_pos_good[i]) {
			for(int residue = 0; residue < i; residue++) {
				map<ll, ll> vals;
				vector<ll> history;
				ll t = 0;
				for(int cur_pos = residue; cur_pos < mx2*2; cur_pos += i) {
					ll tmp_val = dp[cur_pos] - t;
					if(vals.size())
						dp[cur_pos] = max(dp[cur_pos], vals.rbegin()->first + t);
					vals[tmp_val]++;
					history.push_back(tmp_val);
					if(t >= cnt_pos_good[i]) {
						ll tmp = history[t - cnt_pos_good[i]];
						vals[tmp]--;
						if(vals[tmp] == 0) vals.erase(tmp);
					}
					t++;
				}
			}
		}
		/* positive bad */
		if(cnt_pos_bad[i]) {
			for(int residue = 0; residue < i; residue++) {
				map<ll, ll> vals;
				vector<ll> history;
				ll t = 0;
				for(int cur_pos = residue; cur_pos < mx2*2; cur_pos += i) {
					ll tmp_val = dp[cur_pos] + t;
					if(vals.size())
						dp[cur_pos] = max(dp[cur_pos], vals.rbegin()->first - t);
					vals[tmp_val]++;
					history.push_back(tmp_val);
					if(t >= cnt_pos_bad[i]) {
						ll tmp = history[t - cnt_pos_bad[i]];
						vals[tmp]--;
						if(vals[tmp] == 0) vals.erase(tmp);
					}
					t++;
				}
			}
		}
		/* negitive good */
		if(cnt_neg_good[i]) {
			for(int residue = 0; residue < i; residue++) {
				map<ll, ll> vals;
				vector<ll> history;
				ll t = 0;
				for(int cur_neg = mx2*2 - 1 - residue; cur_neg >= 0; cur_neg -= i) {
					ll tmp_val = dp[cur_neg] - t;
					if(vals.size())
						dp[cur_neg] = max(dp[cur_neg], vals.rbegin()->first + t);
					vals[tmp_val]++;
					history.push_back(tmp_val);
					if(t >= cnt_neg_good[i]) {
						ll tmp = history[t - cnt_neg_good[i]];
						vals[tmp]--;
						if(vals[tmp] == 0) vals.erase(tmp);
					}
					t++;
				}
			}
		}
		/* negitive bad */
		if(cnt_neg_bad[i]) {
			for(int residue = 0; residue < i; residue++) {
				map<ll, ll> vals;
				vector<ll> history;
				ll t = 0;
				for(int cur_neg = mx2*2 - 1 - residue; cur_neg >= 0; cur_neg -= i) {
					ll tmp_val = dp[cur_neg] + t;
					if(vals.size())
						dp[cur_neg] = max(dp[cur_neg], vals.rbegin()->first - t);
					vals[tmp_val]++;
					history.push_back(tmp_val);
					if(t >= cnt_neg_bad[i]) {
						ll tmp = history[t - cnt_neg_bad[i]];
						vals[tmp]--;
						if(vals[tmp] == 0) vals.erase(tmp);
					}
					t++;
				}
			}
		}
	}
	if(dp[mx2] < 0) cout << "impossible" << endl;
	else cout << dp[mx2] << endl;
}
void eq() {
	ll total_cnt = cnt_zero;
	for(int i = 1; i <= m; i++) {
		total_cnt += cnt_neg[i] + cnt_pos[i];
	}
	cout << total_cnt << endl;
	exit(0);
}
void more_pos() {
	ll sum_neg = l;
	for(int i = 1; i <= m; i++) {
		sum_neg += cnt_neg[i] * i;
	}
	/* binary search: */
	ll cnt_pos_used = 0;
	for(ll delta = (1ll<<60); delta >= 1; delta >>= 1) {
		ll test_value = cnt_pos_used + delta;
		ll cur_sum = 0;
		ll remaining = test_value;
		for(int i = 1; i <= m; i++) {
			if(cnt_pos[i] >= remaining) {
				cur_sum += remaining * i;
				remaining = 0;
				break;
			} else {
				cur_sum += cnt_pos[i] * i;
				remaining -= cnt_pos[i];
			}
		}
		if(remaining > 0) continue;
		if(cur_sum < sum_neg) cnt_pos_used = test_value;
	}
	cnt_pos_used++;
	ll target = -sum_neg;
	ll remaining = cnt_pos_used;
	ll ans = cnt_pos_used + cnt_zero;
	for(int i = 1; i <= m; i++) {
		if(remaining <= cnt_pos[i]) {
			cnt_pos_good[i] = cnt_pos[i] - remaining;
			cnt_neg_bad[i] = remaining;
			target += remaining * i;
			remaining = 0;
		} else {
			cnt_neg_bad[i] = cnt_pos[i];
			target += cnt_pos[i] * i;
			remaining -= cnt_pos[i];
		}
		cnt_pos_bad[i] = cnt_neg[i];
		ans += cnt_neg[i];
	}
	solve(target, ans);
}
void more_neg() {
	for(int i = 1; i <= m; i++) {
		swap(cnt_pos[i], cnt_neg[i]);
	}
	l *= -1;
	more_pos();
}
main() {
	for(int i = 0; i < mx2*2; i++) dp[i] = ninf;
	cin >> m >> l;
	ll sum_pos = 0;
	ll sum_neg = 0;
	for(int i = m; i >= 1; i--) {
		cin >> cnt_neg[i];
		sum_neg += cnt_neg[i] * i;
	}
	cin >> cnt_zero;
	for(int i = 1; i <= m; i++) {
		cin >> cnt_pos[i];
		sum_pos += cnt_pos[i] * i;
	}
	if(sum_pos < l) {
		cout << "impossible" << endl;
		return 0;
	}
	if(sum_pos - sum_neg == l) eq();
	if(sum_pos - sum_neg > l) more_pos();
	if(sum_pos - sum_neg < l) more_neg();
}

Compilation message

vault.cpp:171:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
  171 | main() {
      | ^~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 101 ms 5164 KB Output is correct
2 Correct 51 ms 3528 KB Output is correct
3 Correct 32 ms 5232 KB Output is correct
4 Correct 152 ms 5208 KB Output is correct
5 Correct 1 ms 1748 KB Output is correct
6 Correct 1985 ms 5196 KB Output is correct
7 Correct 881 ms 3440 KB Output is correct
8 Correct 1875 ms 5232 KB Output is correct
9 Correct 2031 ms 5172 KB Output is correct
10 Correct 54 ms 1836 KB Output is correct
11 Correct 96 ms 1848 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 101 ms 5164 KB Output is correct
2 Correct 51 ms 3528 KB Output is correct
3 Correct 32 ms 5232 KB Output is correct
4 Correct 152 ms 5208 KB Output is correct
5 Correct 1 ms 1748 KB Output is correct
6 Correct 1985 ms 5196 KB Output is correct
7 Correct 881 ms 3440 KB Output is correct
8 Correct 1875 ms 5232 KB Output is correct
9 Correct 2031 ms 5172 KB Output is correct
10 Correct 54 ms 1836 KB Output is correct
11 Correct 96 ms 1848 KB Output is correct
12 Correct 62 ms 5236 KB Output is correct
13 Correct 40 ms 3460 KB Output is correct
14 Correct 28 ms 5212 KB Output is correct
15 Correct 136 ms 5200 KB Output is correct
16 Correct 2 ms 1748 KB Output is correct
17 Correct 1822 ms 5188 KB Output is correct
18 Correct 841 ms 3492 KB Output is correct
19 Correct 1828 ms 5168 KB Output is correct
20 Correct 2107 ms 5200 KB Output is correct
21 Correct 58 ms 1828 KB Output is correct
22 Correct 99 ms 1852 KB Output is correct
23 Correct 1 ms 1748 KB Output is correct
24 Correct 3390 ms 3912 KB Output is correct
25 Correct 1358 ms 2152 KB Output is correct
26 Correct 3551 ms 5192 KB Output is correct
27 Correct 3769 ms 5156 KB Output is correct
28 Correct 62 ms 1800 KB Output is correct
29 Correct 93 ms 1784 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 120 ms 5256 KB Output is correct
2 Correct 439 ms 6068 KB Output is correct
3 Correct 138 ms 2688 KB Output is correct
4 Correct 451 ms 8312 KB Output is correct
5 Correct 426 ms 4304 KB Output is correct
6 Correct 538 ms 14776 KB Output is correct
7 Correct 27 ms 2132 KB Output is correct
8 Correct 74 ms 2212 KB Output is correct
9 Correct 291 ms 14744 KB Output is correct
10 Correct 330 ms 3912 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 120 ms 5256 KB Output is correct
2 Correct 439 ms 6068 KB Output is correct
3 Correct 138 ms 2688 KB Output is correct
4 Correct 451 ms 8312 KB Output is correct
5 Correct 426 ms 4304 KB Output is correct
6 Correct 538 ms 14776 KB Output is correct
7 Correct 27 ms 2132 KB Output is correct
8 Correct 74 ms 2212 KB Output is correct
9 Correct 291 ms 14744 KB Output is correct
10 Correct 330 ms 3912 KB Output is correct
11 Correct 60 ms 5228 KB Output is correct
12 Correct 35 ms 3440 KB Output is correct
13 Correct 27 ms 5268 KB Output is correct
14 Correct 123 ms 5256 KB Output is correct
15 Correct 411 ms 6236 KB Output is correct
16 Correct 137 ms 2696 KB Output is correct
17 Correct 445 ms 8340 KB Output is correct
18 Correct 423 ms 4272 KB Output is correct
19 Correct 530 ms 14888 KB Output is correct
20 Correct 27 ms 2132 KB Output is correct
21 Correct 74 ms 2140 KB Output is correct
22 Correct 290 ms 14812 KB Output is correct
23 Correct 327 ms 3912 KB Output is correct
24 Correct 764 ms 6128 KB Output is correct
25 Correct 397 ms 3064 KB Output is correct
26 Correct 1137 ms 5228 KB Output is correct
27 Correct 793 ms 5268 KB Output is correct
28 Correct 1067 ms 14840 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 120 ms 5256 KB Output is correct
2 Correct 439 ms 6068 KB Output is correct
3 Correct 138 ms 2688 KB Output is correct
4 Correct 451 ms 8312 KB Output is correct
5 Correct 426 ms 4304 KB Output is correct
6 Correct 538 ms 14776 KB Output is correct
7 Correct 27 ms 2132 KB Output is correct
8 Correct 74 ms 2212 KB Output is correct
9 Correct 291 ms 14744 KB Output is correct
10 Correct 330 ms 3912 KB Output is correct
11 Correct 121 ms 5256 KB Output is correct
12 Correct 408 ms 6124 KB Output is correct
13 Correct 138 ms 2660 KB Output is correct
14 Correct 436 ms 8304 KB Output is correct
15 Correct 425 ms 4440 KB Output is correct
16 Correct 529 ms 14776 KB Output is correct
17 Correct 30 ms 2132 KB Output is correct
18 Correct 74 ms 2132 KB Output is correct
19 Correct 284 ms 14796 KB Output is correct
20 Correct 343 ms 3912 KB Output is correct
21 Correct 51 ms 1836 KB Output is correct
22 Correct 100 ms 1844 KB Output is correct
23 Correct 663 ms 4376 KB Output is correct
24 Correct 308 ms 2764 KB Output is correct
25 Correct 646 ms 14800 KB Output is correct
26 Correct 685 ms 8200 KB Output is correct
27 Correct 908 ms 14800 KB Output is correct
28 Correct 525 ms 5052 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 101 ms 5164 KB Output is correct
2 Correct 51 ms 3528 KB Output is correct
3 Correct 32 ms 5232 KB Output is correct
4 Correct 152 ms 5208 KB Output is correct
5 Correct 1 ms 1748 KB Output is correct
6 Correct 1985 ms 5196 KB Output is correct
7 Correct 881 ms 3440 KB Output is correct
8 Correct 1875 ms 5232 KB Output is correct
9 Correct 2031 ms 5172 KB Output is correct
10 Correct 54 ms 1836 KB Output is correct
11 Correct 96 ms 1848 KB Output is correct
12 Correct 120 ms 5256 KB Output is correct
13 Correct 439 ms 6068 KB Output is correct
14 Correct 138 ms 2688 KB Output is correct
15 Correct 451 ms 8312 KB Output is correct
16 Correct 426 ms 4304 KB Output is correct
17 Correct 538 ms 14776 KB Output is correct
18 Correct 27 ms 2132 KB Output is correct
19 Correct 74 ms 2212 KB Output is correct
20 Correct 291 ms 14744 KB Output is correct
21 Correct 330 ms 3912 KB Output is correct
22 Correct 60 ms 5228 KB Output is correct
23 Correct 35 ms 3440 KB Output is correct
24 Correct 27 ms 5268 KB Output is correct
25 Correct 123 ms 5256 KB Output is correct
26 Correct 411 ms 6236 KB Output is correct
27 Correct 137 ms 2696 KB Output is correct
28 Correct 445 ms 8340 KB Output is correct
29 Correct 423 ms 4272 KB Output is correct
30 Correct 530 ms 14888 KB Output is correct
31 Correct 27 ms 2132 KB Output is correct
32 Correct 74 ms 2140 KB Output is correct
33 Correct 290 ms 14812 KB Output is correct
34 Correct 327 ms 3912 KB Output is correct
35 Correct 764 ms 6128 KB Output is correct
36 Correct 397 ms 3064 KB Output is correct
37 Correct 1137 ms 5228 KB Output is correct
38 Correct 793 ms 5268 KB Output is correct
39 Correct 1067 ms 14840 KB Output is correct
40 Correct 121 ms 5256 KB Output is correct
41 Correct 408 ms 6124 KB Output is correct
42 Correct 138 ms 2660 KB Output is correct
43 Correct 436 ms 8304 KB Output is correct
44 Correct 425 ms 4440 KB Output is correct
45 Correct 529 ms 14776 KB Output is correct
46 Correct 30 ms 2132 KB Output is correct
47 Correct 74 ms 2132 KB Output is correct
48 Correct 284 ms 14796 KB Output is correct
49 Correct 343 ms 3912 KB Output is correct
50 Correct 51 ms 1836 KB Output is correct
51 Correct 100 ms 1844 KB Output is correct
52 Correct 663 ms 4376 KB Output is correct
53 Correct 308 ms 2764 KB Output is correct
54 Correct 646 ms 14800 KB Output is correct
55 Correct 685 ms 8200 KB Output is correct
56 Correct 908 ms 14800 KB Output is correct
57 Correct 525 ms 5052 KB Output is correct
58 Correct 62 ms 5200 KB Output is correct
59 Correct 36 ms 3528 KB Output is correct
60 Correct 27 ms 5220 KB Output is correct
61 Correct 118 ms 5224 KB Output is correct
62 Correct 1 ms 1748 KB Output is correct
63 Correct 1755 ms 5180 KB Output is correct
64 Correct 766 ms 3448 KB Output is correct
65 Correct 1735 ms 5260 KB Output is correct
66 Correct 1900 ms 5260 KB Output is correct
67 Correct 51 ms 1828 KB Output is correct
68 Correct 90 ms 1748 KB Output is correct
69 Correct 404 ms 6140 KB Output is correct
70 Correct 138 ms 2640 KB Output is correct
71 Correct 439 ms 8304 KB Output is correct
72 Correct 422 ms 4376 KB Output is correct
73 Correct 523 ms 14776 KB Output is correct
74 Correct 28 ms 2132 KB Output is correct
75 Correct 73 ms 2148 KB Output is correct
76 Correct 289 ms 14936 KB Output is correct
77 Correct 322 ms 3848 KB Output is correct
78 Correct 770 ms 6140 KB Output is correct
79 Correct 377 ms 3088 KB Output is correct
80 Correct 1094 ms 5204 KB Output is correct
81 Correct 797 ms 5248 KB Output is correct
82 Correct 1089 ms 14788 KB Output is correct
83 Correct 679 ms 4276 KB Output is correct
84 Correct 304 ms 2712 KB Output is correct
85 Correct 668 ms 14852 KB Output is correct
86 Correct 688 ms 8288 KB Output is correct
87 Correct 906 ms 14780 KB Output is correct
88 Correct 524 ms 4996 KB Output is correct
89 Correct 1306 ms 8284 KB Output is correct
90 Correct 1430 ms 14768 KB Output is correct
91 Correct 1389 ms 14824 KB Output is correct
92 Correct 1794 ms 15348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 120 ms 5256 KB Output is correct
2 Correct 439 ms 6068 KB Output is correct
3 Correct 138 ms 2688 KB Output is correct
4 Correct 451 ms 8312 KB Output is correct
5 Correct 426 ms 4304 KB Output is correct
6 Correct 538 ms 14776 KB Output is correct
7 Correct 27 ms 2132 KB Output is correct
8 Correct 74 ms 2212 KB Output is correct
9 Correct 291 ms 14744 KB Output is correct
10 Correct 330 ms 3912 KB Output is correct
11 Correct 121 ms 5256 KB Output is correct
12 Correct 408 ms 6124 KB Output is correct
13 Correct 138 ms 2660 KB Output is correct
14 Correct 436 ms 8304 KB Output is correct
15 Correct 425 ms 4440 KB Output is correct
16 Correct 529 ms 14776 KB Output is correct
17 Correct 30 ms 2132 KB Output is correct
18 Correct 74 ms 2132 KB Output is correct
19 Correct 284 ms 14796 KB Output is correct
20 Correct 343 ms 3912 KB Output is correct
21 Correct 51 ms 1836 KB Output is correct
22 Correct 100 ms 1844 KB Output is correct
23 Correct 663 ms 4376 KB Output is correct
24 Correct 308 ms 2764 KB Output is correct
25 Correct 646 ms 14800 KB Output is correct
26 Correct 685 ms 8200 KB Output is correct
27 Correct 908 ms 14800 KB Output is correct
28 Correct 525 ms 5052 KB Output is correct
29 Correct 122 ms 5260 KB Output is correct
30 Correct 411 ms 6128 KB Output is correct
31 Correct 138 ms 2684 KB Output is correct
32 Correct 436 ms 8216 KB Output is correct
33 Correct 428 ms 4380 KB Output is correct
34 Correct 526 ms 14800 KB Output is correct
35 Correct 27 ms 2132 KB Output is correct
36 Correct 76 ms 2148 KB Output is correct
37 Correct 284 ms 14760 KB Output is correct
38 Correct 353 ms 3912 KB Output is correct
39 Correct 49 ms 1832 KB Output is correct
40 Correct 92 ms 1748 KB Output is correct
41 Correct 666 ms 4400 KB Output is correct
42 Correct 311 ms 2756 KB Output is correct
43 Correct 646 ms 14776 KB Output is correct
44 Correct 684 ms 8252 KB Output is correct
45 Correct 912 ms 14844 KB Output is correct
46 Correct 526 ms 4928 KB Output is correct
47 Correct 54 ms 1748 KB Output is correct
48 Correct 94 ms 1780 KB Output is correct
49 Correct 1260 ms 14856 KB Output is correct
50 Correct 536 ms 2232 KB Output is correct
51 Correct 1157 ms 14764 KB Output is correct
52 Correct 1258 ms 8200 KB Output is correct
53 Correct 1761 ms 14780 KB Output is correct
54 Correct 1103 ms 8304 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 101 ms 5164 KB Output is correct
2 Correct 51 ms 3528 KB Output is correct
3 Correct 32 ms 5232 KB Output is correct
4 Correct 152 ms 5208 KB Output is correct
5 Correct 1 ms 1748 KB Output is correct
6 Correct 1985 ms 5196 KB Output is correct
7 Correct 881 ms 3440 KB Output is correct
8 Correct 1875 ms 5232 KB Output is correct
9 Correct 2031 ms 5172 KB Output is correct
10 Correct 54 ms 1836 KB Output is correct
11 Correct 96 ms 1848 KB Output is correct
12 Correct 62 ms 5236 KB Output is correct
13 Correct 40 ms 3460 KB Output is correct
14 Correct 28 ms 5212 KB Output is correct
15 Correct 136 ms 5200 KB Output is correct
16 Correct 2 ms 1748 KB Output is correct
17 Correct 1822 ms 5188 KB Output is correct
18 Correct 841 ms 3492 KB Output is correct
19 Correct 1828 ms 5168 KB Output is correct
20 Correct 2107 ms 5200 KB Output is correct
21 Correct 58 ms 1828 KB Output is correct
22 Correct 99 ms 1852 KB Output is correct
23 Correct 1 ms 1748 KB Output is correct
24 Correct 3390 ms 3912 KB Output is correct
25 Correct 1358 ms 2152 KB Output is correct
26 Correct 3551 ms 5192 KB Output is correct
27 Correct 3769 ms 5156 KB Output is correct
28 Correct 62 ms 1800 KB Output is correct
29 Correct 93 ms 1784 KB Output is correct
30 Correct 120 ms 5256 KB Output is correct
31 Correct 439 ms 6068 KB Output is correct
32 Correct 138 ms 2688 KB Output is correct
33 Correct 451 ms 8312 KB Output is correct
34 Correct 426 ms 4304 KB Output is correct
35 Correct 538 ms 14776 KB Output is correct
36 Correct 27 ms 2132 KB Output is correct
37 Correct 74 ms 2212 KB Output is correct
38 Correct 291 ms 14744 KB Output is correct
39 Correct 330 ms 3912 KB Output is correct
40 Correct 60 ms 5228 KB Output is correct
41 Correct 35 ms 3440 KB Output is correct
42 Correct 27 ms 5268 KB Output is correct
43 Correct 123 ms 5256 KB Output is correct
44 Correct 411 ms 6236 KB Output is correct
45 Correct 137 ms 2696 KB Output is correct
46 Correct 445 ms 8340 KB Output is correct
47 Correct 423 ms 4272 KB Output is correct
48 Correct 530 ms 14888 KB Output is correct
49 Correct 27 ms 2132 KB Output is correct
50 Correct 74 ms 2140 KB Output is correct
51 Correct 290 ms 14812 KB Output is correct
52 Correct 327 ms 3912 KB Output is correct
53 Correct 764 ms 6128 KB Output is correct
54 Correct 397 ms 3064 KB Output is correct
55 Correct 1137 ms 5228 KB Output is correct
56 Correct 793 ms 5268 KB Output is correct
57 Correct 1067 ms 14840 KB Output is correct
58 Correct 121 ms 5256 KB Output is correct
59 Correct 408 ms 6124 KB Output is correct
60 Correct 138 ms 2660 KB Output is correct
61 Correct 436 ms 8304 KB Output is correct
62 Correct 425 ms 4440 KB Output is correct
63 Correct 529 ms 14776 KB Output is correct
64 Correct 30 ms 2132 KB Output is correct
65 Correct 74 ms 2132 KB Output is correct
66 Correct 284 ms 14796 KB Output is correct
67 Correct 343 ms 3912 KB Output is correct
68 Correct 51 ms 1836 KB Output is correct
69 Correct 100 ms 1844 KB Output is correct
70 Correct 663 ms 4376 KB Output is correct
71 Correct 308 ms 2764 KB Output is correct
72 Correct 646 ms 14800 KB Output is correct
73 Correct 685 ms 8200 KB Output is correct
74 Correct 908 ms 14800 KB Output is correct
75 Correct 525 ms 5052 KB Output is correct
76 Correct 62 ms 5200 KB Output is correct
77 Correct 36 ms 3528 KB Output is correct
78 Correct 27 ms 5220 KB Output is correct
79 Correct 118 ms 5224 KB Output is correct
80 Correct 1 ms 1748 KB Output is correct
81 Correct 1755 ms 5180 KB Output is correct
82 Correct 766 ms 3448 KB Output is correct
83 Correct 1735 ms 5260 KB Output is correct
84 Correct 1900 ms 5260 KB Output is correct
85 Correct 51 ms 1828 KB Output is correct
86 Correct 90 ms 1748 KB Output is correct
87 Correct 404 ms 6140 KB Output is correct
88 Correct 138 ms 2640 KB Output is correct
89 Correct 439 ms 8304 KB Output is correct
90 Correct 422 ms 4376 KB Output is correct
91 Correct 523 ms 14776 KB Output is correct
92 Correct 28 ms 2132 KB Output is correct
93 Correct 73 ms 2148 KB Output is correct
94 Correct 289 ms 14936 KB Output is correct
95 Correct 322 ms 3848 KB Output is correct
96 Correct 770 ms 6140 KB Output is correct
97 Correct 377 ms 3088 KB Output is correct
98 Correct 1094 ms 5204 KB Output is correct
99 Correct 797 ms 5248 KB Output is correct
100 Correct 1089 ms 14788 KB Output is correct
101 Correct 679 ms 4276 KB Output is correct
102 Correct 304 ms 2712 KB Output is correct
103 Correct 668 ms 14852 KB Output is correct
104 Correct 688 ms 8288 KB Output is correct
105 Correct 906 ms 14780 KB Output is correct
106 Correct 524 ms 4996 KB Output is correct
107 Correct 1306 ms 8284 KB Output is correct
108 Correct 1430 ms 14768 KB Output is correct
109 Correct 1389 ms 14824 KB Output is correct
110 Correct 1794 ms 15348 KB Output is correct
111 Correct 122 ms 5260 KB Output is correct
112 Correct 411 ms 6128 KB Output is correct
113 Correct 138 ms 2684 KB Output is correct
114 Correct 436 ms 8216 KB Output is correct
115 Correct 428 ms 4380 KB Output is correct
116 Correct 526 ms 14800 KB Output is correct
117 Correct 27 ms 2132 KB Output is correct
118 Correct 76 ms 2148 KB Output is correct
119 Correct 284 ms 14760 KB Output is correct
120 Correct 353 ms 3912 KB Output is correct
121 Correct 49 ms 1832 KB Output is correct
122 Correct 92 ms 1748 KB Output is correct
123 Correct 666 ms 4400 KB Output is correct
124 Correct 311 ms 2756 KB Output is correct
125 Correct 646 ms 14776 KB Output is correct
126 Correct 684 ms 8252 KB Output is correct
127 Correct 912 ms 14844 KB Output is correct
128 Correct 526 ms 4928 KB Output is correct
129 Correct 54 ms 1748 KB Output is correct
130 Correct 94 ms 1780 KB Output is correct
131 Correct 1260 ms 14856 KB Output is correct
132 Correct 536 ms 2232 KB Output is correct
133 Correct 1157 ms 14764 KB Output is correct
134 Correct 1258 ms 8200 KB Output is correct
135 Correct 1761 ms 14780 KB Output is correct
136 Correct 1103 ms 8304 KB Output is correct
137 Correct 61 ms 5268 KB Output is correct
138 Correct 36 ms 3440 KB Output is correct
139 Correct 27 ms 5196 KB Output is correct
140 Correct 122 ms 5232 KB Output is correct
141 Correct 1 ms 1748 KB Output is correct
142 Correct 1755 ms 5256 KB Output is correct
143 Correct 775 ms 3428 KB Output is correct
144 Correct 1734 ms 5204 KB Output is correct
145 Correct 1905 ms 5268 KB Output is correct
146 Correct 49 ms 1748 KB Output is correct
147 Correct 90 ms 1792 KB Output is correct
148 Correct 1 ms 1748 KB Output is correct
149 Correct 3266 ms 3852 KB Output is correct
150 Correct 1312 ms 2132 KB Output is correct
151 Correct 3449 ms 5256 KB Output is correct
152 Correct 3732 ms 5192 KB Output is correct
153 Correct 53 ms 1748 KB Output is correct
154 Correct 94 ms 1748 KB Output is correct
155 Correct 408 ms 6156 KB Output is correct
156 Correct 139 ms 2656 KB Output is correct
157 Correct 440 ms 8300 KB Output is correct
158 Correct 434 ms 4260 KB Output is correct
159 Correct 542 ms 14776 KB Output is correct
160 Correct 28 ms 2256 KB Output is correct
161 Correct 77 ms 2124 KB Output is correct
162 Correct 288 ms 14776 KB Output is correct
163 Correct 327 ms 3912 KB Output is correct
164 Correct 666 ms 4372 KB Output is correct
165 Correct 307 ms 2812 KB Output is correct
166 Correct 650 ms 14764 KB Output is correct
167 Correct 681 ms 8348 KB Output is correct
168 Correct 917 ms 14856 KB Output is correct
169 Correct 527 ms 5144 KB Output is correct
170 Correct 774 ms 6192 KB Output is correct
171 Correct 373 ms 3068 KB Output is correct
172 Correct 1097 ms 5204 KB Output is correct
173 Correct 794 ms 5260 KB Output is correct
174 Correct 1073 ms 14832 KB Output is correct
175 Correct 1295 ms 8292 KB Output is correct
176 Correct 1416 ms 14828 KB Output is correct
177 Correct 1382 ms 14824 KB Output is correct
178 Correct 1767 ms 15452 KB Output is correct
179 Correct 1259 ms 14776 KB Output is correct
180 Correct 540 ms 2244 KB Output is correct
181 Correct 1149 ms 14816 KB Output is correct
182 Correct 1247 ms 8200 KB Output is correct
183 Correct 1751 ms 14824 KB Output is correct
184 Correct 1090 ms 8312 KB Output is correct
185 Correct 2426 ms 8264 KB Output is correct
186 Correct 2668 ms 8268 KB Output is correct
187 Correct 3369 ms 8220 KB Output is correct
188 Correct 3475 ms 14840 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 120 ms 5256 KB Output is correct
2 Correct 439 ms 6068 KB Output is correct
3 Correct 138 ms 2688 KB Output is correct
4 Correct 451 ms 8312 KB Output is correct
5 Correct 426 ms 4304 KB Output is correct
6 Correct 538 ms 14776 KB Output is correct
7 Correct 27 ms 2132 KB Output is correct
8 Correct 74 ms 2212 KB Output is correct
9 Correct 291 ms 14744 KB Output is correct
10 Correct 330 ms 3912 KB Output is correct
11 Correct 121 ms 5256 KB Output is correct
12 Correct 408 ms 6124 KB Output is correct
13 Correct 138 ms 2660 KB Output is correct
14 Correct 436 ms 8304 KB Output is correct
15 Correct 425 ms 4440 KB Output is correct
16 Correct 529 ms 14776 KB Output is correct
17 Correct 30 ms 2132 KB Output is correct
18 Correct 74 ms 2132 KB Output is correct
19 Correct 284 ms 14796 KB Output is correct
20 Correct 343 ms 3912 KB Output is correct
21 Correct 51 ms 1836 KB Output is correct
22 Correct 100 ms 1844 KB Output is correct
23 Correct 663 ms 4376 KB Output is correct
24 Correct 308 ms 2764 KB Output is correct
25 Correct 646 ms 14800 KB Output is correct
26 Correct 685 ms 8200 KB Output is correct
27 Correct 908 ms 14800 KB Output is correct
28 Correct 525 ms 5052 KB Output is correct
29 Correct 122 ms 5260 KB Output is correct
30 Correct 411 ms 6128 KB Output is correct
31 Correct 138 ms 2684 KB Output is correct
32 Correct 436 ms 8216 KB Output is correct
33 Correct 428 ms 4380 KB Output is correct
34 Correct 526 ms 14800 KB Output is correct
35 Correct 27 ms 2132 KB Output is correct
36 Correct 76 ms 2148 KB Output is correct
37 Correct 284 ms 14760 KB Output is correct
38 Correct 353 ms 3912 KB Output is correct
39 Correct 49 ms 1832 KB Output is correct
40 Correct 92 ms 1748 KB Output is correct
41 Correct 666 ms 4400 KB Output is correct
42 Correct 311 ms 2756 KB Output is correct
43 Correct 646 ms 14776 KB Output is correct
44 Correct 684 ms 8252 KB Output is correct
45 Correct 912 ms 14844 KB Output is correct
46 Correct 526 ms 4928 KB Output is correct
47 Correct 54 ms 1748 KB Output is correct
48 Correct 94 ms 1780 KB Output is correct
49 Correct 1260 ms 14856 KB Output is correct
50 Correct 536 ms 2232 KB Output is correct
51 Correct 1157 ms 14764 KB Output is correct
52 Correct 1258 ms 8200 KB Output is correct
53 Correct 1761 ms 14780 KB Output is correct
54 Correct 1103 ms 8304 KB Output is correct
55 Correct 119 ms 5260 KB Output is correct
56 Correct 414 ms 6212 KB Output is correct
57 Correct 141 ms 2652 KB Output is correct
58 Correct 441 ms 8252 KB Output is correct
59 Correct 422 ms 4344 KB Output is correct
60 Correct 529 ms 14868 KB Output is correct
61 Correct 28 ms 2132 KB Output is correct
62 Correct 74 ms 2132 KB Output is correct
63 Correct 288 ms 14780 KB Output is correct
64 Correct 328 ms 3912 KB Output is correct
65 Correct 50 ms 1828 KB Output is correct
66 Correct 92 ms 1748 KB Output is correct
67 Correct 672 ms 4372 KB Output is correct
68 Correct 297 ms 2688 KB Output is correct
69 Correct 649 ms 14776 KB Output is correct
70 Correct 684 ms 8340 KB Output is correct
71 Correct 910 ms 14768 KB Output is correct
72 Correct 531 ms 5112 KB Output is correct
73 Correct 53 ms 1748 KB Output is correct
74 Correct 93 ms 1776 KB Output is correct
75 Correct 1265 ms 14800 KB Output is correct
76 Correct 542 ms 2280 KB Output is correct
77 Correct 1163 ms 14852 KB Output is correct
78 Correct 1268 ms 8424 KB Output is correct
79 Correct 1817 ms 14772 KB Output is correct
80 Correct 1112 ms 8340 KB Output is correct
81 Correct 3751 ms 6116 KB Output is correct
82 Correct 1734 ms 2836 KB Output is correct
83 Correct 3704 ms 8232 KB Output is correct
84 Correct 3814 ms 14772 KB Output is correct
85 Correct 23 ms 1768 KB Output is correct
86 Correct 76 ms 1780 KB Output is correct
87 Correct 3270 ms 8308 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 101 ms 5164 KB Output is correct
2 Correct 51 ms 3528 KB Output is correct
3 Correct 32 ms 5232 KB Output is correct
4 Correct 152 ms 5208 KB Output is correct
5 Correct 1 ms 1748 KB Output is correct
6 Correct 1985 ms 5196 KB Output is correct
7 Correct 881 ms 3440 KB Output is correct
8 Correct 1875 ms 5232 KB Output is correct
9 Correct 2031 ms 5172 KB Output is correct
10 Correct 54 ms 1836 KB Output is correct
11 Correct 96 ms 1848 KB Output is correct
12 Correct 62 ms 5236 KB Output is correct
13 Correct 40 ms 3460 KB Output is correct
14 Correct 28 ms 5212 KB Output is correct
15 Correct 136 ms 5200 KB Output is correct
16 Correct 2 ms 1748 KB Output is correct
17 Correct 1822 ms 5188 KB Output is correct
18 Correct 841 ms 3492 KB Output is correct
19 Correct 1828 ms 5168 KB Output is correct
20 Correct 2107 ms 5200 KB Output is correct
21 Correct 58 ms 1828 KB Output is correct
22 Correct 99 ms 1852 KB Output is correct
23 Correct 1 ms 1748 KB Output is correct
24 Correct 3390 ms 3912 KB Output is correct
25 Correct 1358 ms 2152 KB Output is correct
26 Correct 3551 ms 5192 KB Output is correct
27 Correct 3769 ms 5156 KB Output is correct
28 Correct 62 ms 1800 KB Output is correct
29 Correct 93 ms 1784 KB Output is correct
30 Correct 120 ms 5256 KB Output is correct
31 Correct 439 ms 6068 KB Output is correct
32 Correct 138 ms 2688 KB Output is correct
33 Correct 451 ms 8312 KB Output is correct
34 Correct 426 ms 4304 KB Output is correct
35 Correct 538 ms 14776 KB Output is correct
36 Correct 27 ms 2132 KB Output is correct
37 Correct 74 ms 2212 KB Output is correct
38 Correct 291 ms 14744 KB Output is correct
39 Correct 330 ms 3912 KB Output is correct
40 Correct 60 ms 5228 KB Output is correct
41 Correct 35 ms 3440 KB Output is correct
42 Correct 27 ms 5268 KB Output is correct
43 Correct 123 ms 5256 KB Output is correct
44 Correct 411 ms 6236 KB Output is correct
45 Correct 137 ms 2696 KB Output is correct
46 Correct 445 ms 8340 KB Output is correct
47 Correct 423 ms 4272 KB Output is correct
48 Correct 530 ms 14888 KB Output is correct
49 Correct 27 ms 2132 KB Output is correct
50 Correct 74 ms 2140 KB Output is correct
51 Correct 290 ms 14812 KB Output is correct
52 Correct 327 ms 3912 KB Output is correct
53 Correct 764 ms 6128 KB Output is correct
54 Correct 397 ms 3064 KB Output is correct
55 Correct 1137 ms 5228 KB Output is correct
56 Correct 793 ms 5268 KB Output is correct
57 Correct 1067 ms 14840 KB Output is correct
58 Correct 121 ms 5256 KB Output is correct
59 Correct 408 ms 6124 KB Output is correct
60 Correct 138 ms 2660 KB Output is correct
61 Correct 436 ms 8304 KB Output is correct
62 Correct 425 ms 4440 KB Output is correct
63 Correct 529 ms 14776 KB Output is correct
64 Correct 30 ms 2132 KB Output is correct
65 Correct 74 ms 2132 KB Output is correct
66 Correct 284 ms 14796 KB Output is correct
67 Correct 343 ms 3912 KB Output is correct
68 Correct 51 ms 1836 KB Output is correct
69 Correct 100 ms 1844 KB Output is correct
70 Correct 663 ms 4376 KB Output is correct
71 Correct 308 ms 2764 KB Output is correct
72 Correct 646 ms 14800 KB Output is correct
73 Correct 685 ms 8200 KB Output is correct
74 Correct 908 ms 14800 KB Output is correct
75 Correct 525 ms 5052 KB Output is correct
76 Correct 62 ms 5200 KB Output is correct
77 Correct 36 ms 3528 KB Output is correct
78 Correct 27 ms 5220 KB Output is correct
79 Correct 118 ms 5224 KB Output is correct
80 Correct 1 ms 1748 KB Output is correct
81 Correct 1755 ms 5180 KB Output is correct
82 Correct 766 ms 3448 KB Output is correct
83 Correct 1735 ms 5260 KB Output is correct
84 Correct 1900 ms 5260 KB Output is correct
85 Correct 51 ms 1828 KB Output is correct
86 Correct 90 ms 1748 KB Output is correct
87 Correct 404 ms 6140 KB Output is correct
88 Correct 138 ms 2640 KB Output is correct
89 Correct 439 ms 8304 KB Output is correct
90 Correct 422 ms 4376 KB Output is correct
91 Correct 523 ms 14776 KB Output is correct
92 Correct 28 ms 2132 KB Output is correct
93 Correct 73 ms 2148 KB Output is correct
94 Correct 289 ms 14936 KB Output is correct
95 Correct 322 ms 3848 KB Output is correct
96 Correct 770 ms 6140 KB Output is correct
97 Correct 377 ms 3088 KB Output is correct
98 Correct 1094 ms 5204 KB Output is correct
99 Correct 797 ms 5248 KB Output is correct
100 Correct 1089 ms 14788 KB Output is correct
101 Correct 679 ms 4276 KB Output is correct
102 Correct 304 ms 2712 KB Output is correct
103 Correct 668 ms 14852 KB Output is correct
104 Correct 688 ms 8288 KB Output is correct
105 Correct 906 ms 14780 KB Output is correct
106 Correct 524 ms 4996 KB Output is correct
107 Correct 1306 ms 8284 KB Output is correct
108 Correct 1430 ms 14768 KB Output is correct
109 Correct 1389 ms 14824 KB Output is correct
110 Correct 1794 ms 15348 KB Output is correct
111 Correct 122 ms 5260 KB Output is correct
112 Correct 411 ms 6128 KB Output is correct
113 Correct 138 ms 2684 KB Output is correct
114 Correct 436 ms 8216 KB Output is correct
115 Correct 428 ms 4380 KB Output is correct
116 Correct 526 ms 14800 KB Output is correct
117 Correct 27 ms 2132 KB Output is correct
118 Correct 76 ms 2148 KB Output is correct
119 Correct 284 ms 14760 KB Output is correct
120 Correct 353 ms 3912 KB Output is correct
121 Correct 49 ms 1832 KB Output is correct
122 Correct 92 ms 1748 KB Output is correct
123 Correct 666 ms 4400 KB Output is correct
124 Correct 311 ms 2756 KB Output is correct
125 Correct 646 ms 14776 KB Output is correct
126 Correct 684 ms 8252 KB Output is correct
127 Correct 912 ms 14844 KB Output is correct
128 Correct 526 ms 4928 KB Output is correct
129 Correct 54 ms 1748 KB Output is correct
130 Correct 94 ms 1780 KB Output is correct
131 Correct 1260 ms 14856 KB Output is correct
132 Correct 536 ms 2232 KB Output is correct
133 Correct 1157 ms 14764 KB Output is correct
134 Correct 1258 ms 8200 KB Output is correct
135 Correct 1761 ms 14780 KB Output is correct
136 Correct 1103 ms 8304 KB Output is correct
137 Correct 61 ms 5268 KB Output is correct
138 Correct 36 ms 3440 KB Output is correct
139 Correct 27 ms 5196 KB Output is correct
140 Correct 122 ms 5232 KB Output is correct
141 Correct 1 ms 1748 KB Output is correct
142 Correct 1755 ms 5256 KB Output is correct
143 Correct 775 ms 3428 KB Output is correct
144 Correct 1734 ms 5204 KB Output is correct
145 Correct 1905 ms 5268 KB Output is correct
146 Correct 49 ms 1748 KB Output is correct
147 Correct 90 ms 1792 KB Output is correct
148 Correct 1 ms 1748 KB Output is correct
149 Correct 3266 ms 3852 KB Output is correct
150 Correct 1312 ms 2132 KB Output is correct
151 Correct 3449 ms 5256 KB Output is correct
152 Correct 3732 ms 5192 KB Output is correct
153 Correct 53 ms 1748 KB Output is correct
154 Correct 94 ms 1748 KB Output is correct
155 Correct 408 ms 6156 KB Output is correct
156 Correct 139 ms 2656 KB Output is correct
157 Correct 440 ms 8300 KB Output is correct
158 Correct 434 ms 4260 KB Output is correct
159 Correct 542 ms 14776 KB Output is correct
160 Correct 28 ms 2256 KB Output is correct
161 Correct 77 ms 2124 KB Output is correct
162 Correct 288 ms 14776 KB Output is correct
163 Correct 327 ms 3912 KB Output is correct
164 Correct 666 ms 4372 KB Output is correct
165 Correct 307 ms 2812 KB Output is correct
166 Correct 650 ms 14764 KB Output is correct
167 Correct 681 ms 8348 KB Output is correct
168 Correct 917 ms 14856 KB Output is correct
169 Correct 527 ms 5144 KB Output is correct
170 Correct 774 ms 6192 KB Output is correct
171 Correct 373 ms 3068 KB Output is correct
172 Correct 1097 ms 5204 KB Output is correct
173 Correct 794 ms 5260 KB Output is correct
174 Correct 1073 ms 14832 KB Output is correct
175 Correct 1295 ms 8292 KB Output is correct
176 Correct 1416 ms 14828 KB Output is correct
177 Correct 1382 ms 14824 KB Output is correct
178 Correct 1767 ms 15452 KB Output is correct
179 Correct 1259 ms 14776 KB Output is correct
180 Correct 540 ms 2244 KB Output is correct
181 Correct 1149 ms 14816 KB Output is correct
182 Correct 1247 ms 8200 KB Output is correct
183 Correct 1751 ms 14824 KB Output is correct
184 Correct 1090 ms 8312 KB Output is correct
185 Correct 2426 ms 8264 KB Output is correct
186 Correct 2668 ms 8268 KB Output is correct
187 Correct 3369 ms 8220 KB Output is correct
188 Correct 3475 ms 14840 KB Output is correct
189 Correct 119 ms 5260 KB Output is correct
190 Correct 414 ms 6212 KB Output is correct
191 Correct 141 ms 2652 KB Output is correct
192 Correct 441 ms 8252 KB Output is correct
193 Correct 422 ms 4344 KB Output is correct
194 Correct 529 ms 14868 KB Output is correct
195 Correct 28 ms 2132 KB Output is correct
196 Correct 74 ms 2132 KB Output is correct
197 Correct 288 ms 14780 KB Output is correct
198 Correct 328 ms 3912 KB Output is correct
199 Correct 50 ms 1828 KB Output is correct
200 Correct 92 ms 1748 KB Output is correct
201 Correct 672 ms 4372 KB Output is correct
202 Correct 297 ms 2688 KB Output is correct
203 Correct 649 ms 14776 KB Output is correct
204 Correct 684 ms 8340 KB Output is correct
205 Correct 910 ms 14768 KB Output is correct
206 Correct 531 ms 5112 KB Output is correct
207 Correct 53 ms 1748 KB Output is correct
208 Correct 93 ms 1776 KB Output is correct
209 Correct 1265 ms 14800 KB Output is correct
210 Correct 542 ms 2280 KB Output is correct
211 Correct 1163 ms 14852 KB Output is correct
212 Correct 1268 ms 8424 KB Output is correct
213 Correct 1817 ms 14772 KB Output is correct
214 Correct 1112 ms 8340 KB Output is correct
215 Correct 3751 ms 6116 KB Output is correct
216 Correct 1734 ms 2836 KB Output is correct
217 Correct 3704 ms 8232 KB Output is correct
218 Correct 3814 ms 14772 KB Output is correct
219 Correct 23 ms 1768 KB Output is correct
220 Correct 76 ms 1780 KB Output is correct
221 Correct 3270 ms 8308 KB Output is correct
222 Correct 120 ms 5268 KB Output is correct
223 Correct 411 ms 6200 KB Output is correct
224 Correct 141 ms 2696 KB Output is correct
225 Correct 441 ms 8304 KB Output is correct
226 Correct 442 ms 4344 KB Output is correct
227 Correct 531 ms 14792 KB Output is correct
228 Correct 28 ms 2132 KB Output is correct
229 Correct 74 ms 2148 KB Output is correct
230 Correct 291 ms 14796 KB Output is correct
231 Correct 331 ms 3928 KB Output is correct
232 Correct 51 ms 1816 KB Output is correct
233 Correct 92 ms 1748 KB Output is correct
234 Correct 669 ms 4360 KB Output is correct
235 Correct 296 ms 2688 KB Output is correct
236 Correct 665 ms 14872 KB Output is correct
237 Correct 677 ms 8232 KB Output is correct
238 Correct 918 ms 14796 KB Output is correct
239 Correct 530 ms 5048 KB Output is correct
240 Correct 53 ms 1748 KB Output is correct
241 Correct 94 ms 1796 KB Output is correct
242 Correct 1269 ms 14816 KB Output is correct
243 Correct 543 ms 2464 KB Output is correct
244 Correct 1163 ms 14832 KB Output is correct
245 Correct 1263 ms 8204 KB Output is correct
246 Correct 1766 ms 14780 KB Output is correct
247 Correct 1094 ms 8200 KB Output is correct
248 Correct 60 ms 5240 KB Output is correct
249 Correct 35 ms 3428 KB Output is correct
250 Correct 29 ms 5224 KB Output is correct
251 Correct 1 ms 1764 KB Output is correct
252 Correct 1791 ms 5232 KB Output is correct
253 Correct 801 ms 3440 KB Output is correct
254 Correct 1765 ms 5236 KB Output is correct
255 Correct 1906 ms 5288 KB Output is correct
256 Correct 1 ms 1748 KB Output is correct
257 Correct 3216 ms 3876 KB Output is correct
258 Correct 1321 ms 2132 KB Output is correct
259 Correct 3468 ms 5288 KB Output is correct
260 Correct 3852 ms 5288 KB Output is correct
261 Correct 770 ms 6140 KB Output is correct
262 Correct 383 ms 3064 KB Output is correct
263 Correct 1112 ms 5256 KB Output is correct
264 Correct 803 ms 5176 KB Output is correct
265 Correct 1075 ms 14788 KB Output is correct
266 Correct 1304 ms 8264 KB Output is correct
267 Correct 1442 ms 14780 KB Output is correct
268 Correct 1383 ms 14844 KB Output is correct
269 Correct 1776 ms 15352 KB Output is correct
270 Correct 2424 ms 8460 KB Output is correct
271 Correct 2692 ms 8212 KB Output is correct
272 Correct 3386 ms 8196 KB Output is correct
273 Correct 3480 ms 14792 KB Output is correct
274 Correct 3697 ms 6120 KB Output is correct
275 Correct 1711 ms 2832 KB Output is correct
276 Correct 3644 ms 8204 KB Output is correct
277 Correct 3750 ms 14840 KB Output is correct
278 Correct 22 ms 1748 KB Output is correct
279 Correct 78 ms 1904 KB Output is correct
280 Correct 3229 ms 8192 KB Output is correct
281 Execution timed out 5095 ms 5188 KB Time limit exceeded
282 Halted 0 ms 0 KB -