Submission #889666

# Submission time Handle Problem Language Result Execution time Memory
889666 2023-12-20T04:52:20 Z vjudge1 Council (JOI23_council) C++14
41 / 100
4000 ms 70996 KB
/*

author : abushbandit
contest : ---

*/

#include "bits/stdc++.h"

#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>

using namespace __gnu_pbds;

using namespace std;

#define int long long
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
#define ff first
#define ss second
#define pb push_back
#define rep(i,s,f) for(int i = s;i < f;i++)

#define ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>

#pragma GCC optimize("Ofast,no-stack-protector,fast-math",3)

template <class type1>
	using ordered_multiset = tree <type1, null_type, less_equal <type1>, rb_tree_tag, tree_order_statistics_node_update>;

typedef long long ll;
typedef long double ld;
typedef vector<int> vi;
typedef vector<pair<int,int>> vii;
typedef pair<int,int> pii;

const ll INF = 1e18;
const ll MOD7 = 1e9 + 7;
const ll MOD9 = 998244353;
const ld PI = acos(-1.0);
const int N = 1e5 + 6;

template <class F, class _S>
bool chmin(F &u, const _S &v){
    bool flag = false;
    if ( u > v ){
        u = v; flag |= true;
    }
    return flag;
}

template <class F, class _S>
bool chmax(F &u, const _S &v){
    bool flag = false;
    if ( u < v ){
        u = v; flag |= true;
    }
    return flag;
    
}

int binpow (int a, int n) {
	int res = 1;
	while (n) {
		if (n & 1)
			res *= a;
		a *= a;
		n >>= 1;
	}
	return res;
}

void start_file(string file){
	freopen((file + ".in").c_str(),"r",stdin);
	freopen((file + ".out").c_str(),"w",stdout);
}


void solve(int tc){
	
	int n,m;
	cin >> n >> m;
	int a[n][m],s[m],b[n][m];
	rep(i,0,n){
		rep(j,0,m){
			cin >> a[i][j];
			b[i][j] = a[i][j];
		}
	}
	rep(j,0,m){
		int cnt = 0;
		rep(i,0,n){
			cnt += a[i][j] > 0;
		}
		s[j] = cnt;
//		cout << s[j] << "\n";
	}
	if(n <= 3000){
		
		rep(i,0,n){
			rep(j,0,m){
				a[i][j] = b[i][j];
			}
		}
		for(int i = 0;i < n;i++){
			int ans = 0;
			for(int j = 0;j < n;j++){
				if(i != j){
					int cnt = 0;
					for(int k = 0;k < m;k++){
	//					cout << s[k] << " ";
						if(s[k] - ((a[i][k] == 1) + (a[j][k] == 1)) >= (n) / 2){
							cnt++;
						}
					}
	//				cout << "\n";
					ans = max(ans,cnt);
				}
			}
			cout << ans << "\n";
		}
	} else {
		
		int mp[N] {},l[n + 1] {}; 
		
		rep(i,0,n){
			int mask = 0;
			for(int j = 0;j < m;j++){
				mask += (1 << j) * a[i][j];
			}
			l[i] = mask;
			mp[mask]++;
		}	
		int res[N] {};
		
		for(int mask = 0;mask < (1 << m);mask++){
			if(mp[mask] == 0){
				continue;
			}
			int ans = 0;
			for(int msk = 0;msk < (1 << m);msk++){
				if((mask == msk && mp[mask] < 2) || (mp[msk] == 0)){
					continue;
				}
				int cnt = 0;
				for(int k = 0;k < m;k++){
					int h = msk >> k & 1;
					int z = mask >> k & 1;
					if(s[k] - (h + z) >= n / 2){
						cnt++;
					}
				}
				ans = max(ans,cnt);
			}
			res[mask] = ans;
		}
		rep(i,0,n){
			cout << res[l[i]] << "\n";
		}
		
	}
	
		
}

signed main(){
    ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);                      
    
    //	start_file("");

	ios_base::sync_with_stdio(0);
	cin.tie(0);cout.tie(0);

	int test_cases = 1;
//	cin >> test_cases ;
	for(int tc = 1;tc <= test_cases;++ tc){
		solve(tc);
	}
    
}

Compilation message

council.cpp: In function 'void start_file(std::string)':
council.cpp:75:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   75 |  freopen((file + ".in").c_str(),"r",stdin);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
council.cpp:76:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   76 |  freopen((file + ".out").c_str(),"w",stdout);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 1 ms 1884 KB Output is correct
2 Correct 1 ms 1884 KB Output is correct
3 Correct 1 ms 1884 KB Output is correct
4 Correct 1 ms 1884 KB Output is correct
5 Correct 1 ms 1884 KB Output is correct
6 Correct 4 ms 1884 KB Output is correct
7 Correct 1 ms 2036 KB Output is correct
8 Correct 1 ms 1880 KB Output is correct
9 Correct 4 ms 1884 KB Output is correct
10 Correct 1 ms 1880 KB Output is correct
11 Correct 1 ms 1884 KB Output is correct
12 Correct 4 ms 1924 KB Output is correct
13 Correct 1 ms 1880 KB Output is correct
14 Correct 1 ms 1880 KB Output is correct
15 Correct 1 ms 1884 KB Output is correct
16 Correct 1 ms 1884 KB Output is correct
17 Correct 1 ms 1884 KB Output is correct
18 Correct 1 ms 1884 KB Output is correct
19 Correct 1 ms 1884 KB Output is correct
20 Correct 1 ms 1884 KB Output is correct
21 Correct 2 ms 1884 KB Output is correct
22 Correct 1 ms 1884 KB Output is correct
23 Correct 1 ms 1884 KB Output is correct
24 Correct 1 ms 1884 KB Output is correct
25 Correct 1 ms 1884 KB Output is correct
26 Correct 1 ms 1884 KB Output is correct
27 Correct 1 ms 1884 KB Output is correct
28 Correct 1 ms 1884 KB Output is correct
29 Correct 1 ms 1964 KB Output is correct
30 Correct 1 ms 1884 KB Output is correct
31 Correct 2 ms 1884 KB Output is correct
32 Correct 1 ms 1856 KB Output is correct
33 Correct 1 ms 1884 KB Output is correct
34 Correct 1 ms 1884 KB Output is correct
35 Correct 1 ms 1884 KB Output is correct
36 Correct 1 ms 2036 KB Output is correct
37 Correct 2 ms 1884 KB Output is correct
38 Correct 1 ms 1884 KB Output is correct
39 Correct 1 ms 1884 KB Output is correct
40 Correct 3 ms 2032 KB Output is correct
41 Correct 1 ms 1884 KB Output is correct
42 Correct 1 ms 1884 KB Output is correct
43 Correct 1 ms 1884 KB Output is correct
44 Correct 1 ms 1884 KB Output is correct
45 Correct 1 ms 1884 KB Output is correct
46 Correct 1 ms 1884 KB Output is correct
47 Correct 1 ms 1884 KB Output is correct
48 Correct 1 ms 1884 KB Output is correct
49 Correct 1 ms 1884 KB Output is correct
50 Correct 1 ms 1884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 1884 KB Output is correct
2 Correct 1 ms 1884 KB Output is correct
3 Correct 1 ms 1884 KB Output is correct
4 Correct 1 ms 1884 KB Output is correct
5 Correct 1 ms 1884 KB Output is correct
6 Correct 4 ms 1884 KB Output is correct
7 Correct 1 ms 2036 KB Output is correct
8 Correct 1 ms 1880 KB Output is correct
9 Correct 4 ms 1884 KB Output is correct
10 Correct 1 ms 1880 KB Output is correct
11 Correct 1 ms 1884 KB Output is correct
12 Correct 4 ms 1924 KB Output is correct
13 Correct 1 ms 1880 KB Output is correct
14 Correct 1 ms 1880 KB Output is correct
15 Correct 1 ms 1884 KB Output is correct
16 Correct 1 ms 1884 KB Output is correct
17 Correct 1 ms 1884 KB Output is correct
18 Correct 1 ms 1884 KB Output is correct
19 Correct 1 ms 1884 KB Output is correct
20 Correct 1 ms 1884 KB Output is correct
21 Correct 2 ms 1884 KB Output is correct
22 Correct 1 ms 1884 KB Output is correct
23 Correct 1 ms 1884 KB Output is correct
24 Correct 1 ms 1884 KB Output is correct
25 Correct 1 ms 1884 KB Output is correct
26 Correct 1 ms 1884 KB Output is correct
27 Correct 1 ms 1884 KB Output is correct
28 Correct 1 ms 1884 KB Output is correct
29 Correct 1 ms 1964 KB Output is correct
30 Correct 1 ms 1884 KB Output is correct
31 Correct 2 ms 1884 KB Output is correct
32 Correct 1 ms 1856 KB Output is correct
33 Correct 1 ms 1884 KB Output is correct
34 Correct 1 ms 1884 KB Output is correct
35 Correct 1 ms 1884 KB Output is correct
36 Correct 1 ms 2036 KB Output is correct
37 Correct 2 ms 1884 KB Output is correct
38 Correct 1 ms 1884 KB Output is correct
39 Correct 1 ms 1884 KB Output is correct
40 Correct 3 ms 2032 KB Output is correct
41 Correct 1 ms 1884 KB Output is correct
42 Correct 1 ms 1884 KB Output is correct
43 Correct 1 ms 1884 KB Output is correct
44 Correct 1 ms 1884 KB Output is correct
45 Correct 1 ms 1884 KB Output is correct
46 Correct 1 ms 1884 KB Output is correct
47 Correct 1 ms 1884 KB Output is correct
48 Correct 1 ms 1884 KB Output is correct
49 Correct 1 ms 1884 KB Output is correct
50 Correct 1 ms 1884 KB Output is correct
51 Correct 254 ms 3152 KB Output is correct
52 Correct 248 ms 2908 KB Output is correct
53 Correct 250 ms 3156 KB Output is correct
54 Correct 248 ms 3152 KB Output is correct
55 Correct 32 ms 1884 KB Output is correct
56 Correct 211 ms 2792 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 1880 KB Output is correct
2 Correct 45 ms 14336 KB Output is correct
3 Correct 47 ms 14160 KB Output is correct
4 Correct 32 ms 9552 KB Output is correct
5 Correct 48 ms 14164 KB Output is correct
6 Correct 34 ms 9552 KB Output is correct
7 Correct 48 ms 14160 KB Output is correct
8 Correct 1 ms 1884 KB Output is correct
9 Correct 1 ms 1884 KB Output is correct
10 Correct 1 ms 1884 KB Output is correct
11 Correct 1 ms 1884 KB Output is correct
12 Correct 2 ms 1884 KB Output is correct
13 Correct 1 ms 1884 KB Output is correct
14 Correct 1 ms 1884 KB Output is correct
15 Correct 1 ms 1884 KB Output is correct
16 Correct 1 ms 1884 KB Output is correct
17 Correct 32 ms 2112 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 1880 KB Output is correct
2 Correct 45 ms 14336 KB Output is correct
3 Correct 47 ms 14160 KB Output is correct
4 Correct 32 ms 9552 KB Output is correct
5 Correct 48 ms 14164 KB Output is correct
6 Correct 34 ms 9552 KB Output is correct
7 Correct 48 ms 14160 KB Output is correct
8 Correct 1 ms 1884 KB Output is correct
9 Correct 1 ms 1884 KB Output is correct
10 Correct 1 ms 1884 KB Output is correct
11 Correct 1 ms 1884 KB Output is correct
12 Correct 2 ms 1884 KB Output is correct
13 Correct 1 ms 1884 KB Output is correct
14 Correct 1 ms 1884 KB Output is correct
15 Correct 1 ms 1884 KB Output is correct
16 Correct 1 ms 1884 KB Output is correct
17 Correct 32 ms 2112 KB Output is correct
18 Correct 1 ms 1880 KB Output is correct
19 Correct 1 ms 1884 KB Output is correct
20 Correct 188 ms 52012 KB Output is correct
21 Correct 162 ms 47188 KB Output is correct
22 Correct 169 ms 47188 KB Output is correct
23 Correct 172 ms 52032 KB Output is correct
24 Correct 177 ms 51796 KB Output is correct
25 Correct 195 ms 51820 KB Output is correct
26 Correct 201 ms 51796 KB Output is correct
27 Correct 1 ms 1880 KB Output is correct
28 Correct 1 ms 1884 KB Output is correct
29 Correct 1 ms 1880 KB Output is correct
30 Correct 1 ms 1880 KB Output is correct
31 Correct 1 ms 1884 KB Output is correct
32 Correct 1 ms 1884 KB Output is correct
33 Correct 1 ms 1880 KB Output is correct
34 Correct 1 ms 1884 KB Output is correct
35 Correct 1 ms 1884 KB Output is correct
36 Correct 3 ms 1884 KB Output is correct
37 Correct 1 ms 1884 KB Output is correct
38 Correct 1 ms 1884 KB Output is correct
39 Correct 1 ms 1884 KB Output is correct
40 Correct 1 ms 1884 KB Output is correct
41 Correct 1 ms 1884 KB Output is correct
42 Correct 1 ms 1884 KB Output is correct
43 Correct 1 ms 1884 KB Output is correct
44 Correct 1 ms 1884 KB Output is correct
45 Correct 3 ms 1884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 1880 KB Output is correct
2 Correct 45 ms 14336 KB Output is correct
3 Correct 47 ms 14160 KB Output is correct
4 Correct 32 ms 9552 KB Output is correct
5 Correct 48 ms 14164 KB Output is correct
6 Correct 34 ms 9552 KB Output is correct
7 Correct 48 ms 14160 KB Output is correct
8 Correct 1 ms 1884 KB Output is correct
9 Correct 1 ms 1884 KB Output is correct
10 Correct 1 ms 1884 KB Output is correct
11 Correct 1 ms 1884 KB Output is correct
12 Correct 2 ms 1884 KB Output is correct
13 Correct 1 ms 1884 KB Output is correct
14 Correct 1 ms 1884 KB Output is correct
15 Correct 1 ms 1884 KB Output is correct
16 Correct 1 ms 1884 KB Output is correct
17 Correct 32 ms 2112 KB Output is correct
18 Correct 1 ms 1880 KB Output is correct
19 Correct 1 ms 1884 KB Output is correct
20 Correct 188 ms 52012 KB Output is correct
21 Correct 162 ms 47188 KB Output is correct
22 Correct 169 ms 47188 KB Output is correct
23 Correct 172 ms 52032 KB Output is correct
24 Correct 177 ms 51796 KB Output is correct
25 Correct 195 ms 51820 KB Output is correct
26 Correct 201 ms 51796 KB Output is correct
27 Correct 1 ms 1880 KB Output is correct
28 Correct 1 ms 1884 KB Output is correct
29 Correct 1 ms 1880 KB Output is correct
30 Correct 1 ms 1880 KB Output is correct
31 Correct 1 ms 1884 KB Output is correct
32 Correct 1 ms 1884 KB Output is correct
33 Correct 1 ms 1880 KB Output is correct
34 Correct 1 ms 1884 KB Output is correct
35 Correct 1 ms 1884 KB Output is correct
36 Correct 3 ms 1884 KB Output is correct
37 Correct 1 ms 1884 KB Output is correct
38 Correct 1 ms 1884 KB Output is correct
39 Correct 1 ms 1884 KB Output is correct
40 Correct 1 ms 1884 KB Output is correct
41 Correct 1 ms 1884 KB Output is correct
42 Correct 1 ms 1884 KB Output is correct
43 Correct 1 ms 1884 KB Output is correct
44 Correct 1 ms 1884 KB Output is correct
45 Correct 3 ms 1884 KB Output is correct
46 Correct 1 ms 1884 KB Output is correct
47 Correct 484 ms 70480 KB Output is correct
48 Correct 302 ms 65904 KB Output is correct
49 Correct 305 ms 65908 KB Output is correct
50 Correct 232 ms 70996 KB Output is correct
51 Correct 248 ms 70488 KB Output is correct
52 Execution timed out 4040 ms 70044 KB Time limit exceeded
53 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 1880 KB Output is correct
2 Correct 45 ms 14336 KB Output is correct
3 Correct 47 ms 14160 KB Output is correct
4 Correct 32 ms 9552 KB Output is correct
5 Correct 48 ms 14164 KB Output is correct
6 Correct 34 ms 9552 KB Output is correct
7 Correct 48 ms 14160 KB Output is correct
8 Correct 1 ms 1884 KB Output is correct
9 Correct 1 ms 1884 KB Output is correct
10 Correct 1 ms 1884 KB Output is correct
11 Correct 1 ms 1884 KB Output is correct
12 Correct 2 ms 1884 KB Output is correct
13 Correct 1 ms 1884 KB Output is correct
14 Correct 1 ms 1884 KB Output is correct
15 Correct 1 ms 1884 KB Output is correct
16 Correct 1 ms 1884 KB Output is correct
17 Correct 32 ms 2112 KB Output is correct
18 Correct 1 ms 1880 KB Output is correct
19 Correct 1 ms 1884 KB Output is correct
20 Correct 188 ms 52012 KB Output is correct
21 Correct 162 ms 47188 KB Output is correct
22 Correct 169 ms 47188 KB Output is correct
23 Correct 172 ms 52032 KB Output is correct
24 Correct 177 ms 51796 KB Output is correct
25 Correct 195 ms 51820 KB Output is correct
26 Correct 201 ms 51796 KB Output is correct
27 Correct 1 ms 1880 KB Output is correct
28 Correct 1 ms 1884 KB Output is correct
29 Correct 1 ms 1880 KB Output is correct
30 Correct 1 ms 1880 KB Output is correct
31 Correct 1 ms 1884 KB Output is correct
32 Correct 1 ms 1884 KB Output is correct
33 Correct 1 ms 1880 KB Output is correct
34 Correct 1 ms 1884 KB Output is correct
35 Correct 1 ms 1884 KB Output is correct
36 Correct 3 ms 1884 KB Output is correct
37 Correct 1 ms 1884 KB Output is correct
38 Correct 1 ms 1884 KB Output is correct
39 Correct 1 ms 1884 KB Output is correct
40 Correct 1 ms 1884 KB Output is correct
41 Correct 1 ms 1884 KB Output is correct
42 Correct 1 ms 1884 KB Output is correct
43 Correct 1 ms 1884 KB Output is correct
44 Correct 1 ms 1884 KB Output is correct
45 Correct 3 ms 1884 KB Output is correct
46 Correct 1 ms 1884 KB Output is correct
47 Correct 484 ms 70480 KB Output is correct
48 Correct 302 ms 65904 KB Output is correct
49 Correct 305 ms 65908 KB Output is correct
50 Correct 232 ms 70996 KB Output is correct
51 Correct 248 ms 70488 KB Output is correct
52 Execution timed out 4040 ms 70044 KB Time limit exceeded
53 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 1884 KB Output is correct
2 Correct 1 ms 1884 KB Output is correct
3 Correct 1 ms 1884 KB Output is correct
4 Correct 1 ms 1884 KB Output is correct
5 Correct 1 ms 1884 KB Output is correct
6 Correct 4 ms 1884 KB Output is correct
7 Correct 1 ms 2036 KB Output is correct
8 Correct 1 ms 1880 KB Output is correct
9 Correct 4 ms 1884 KB Output is correct
10 Correct 1 ms 1880 KB Output is correct
11 Correct 1 ms 1884 KB Output is correct
12 Correct 4 ms 1924 KB Output is correct
13 Correct 1 ms 1880 KB Output is correct
14 Correct 1 ms 1880 KB Output is correct
15 Correct 1 ms 1884 KB Output is correct
16 Correct 1 ms 1884 KB Output is correct
17 Correct 1 ms 1884 KB Output is correct
18 Correct 1 ms 1884 KB Output is correct
19 Correct 1 ms 1884 KB Output is correct
20 Correct 1 ms 1884 KB Output is correct
21 Correct 2 ms 1884 KB Output is correct
22 Correct 1 ms 1884 KB Output is correct
23 Correct 1 ms 1884 KB Output is correct
24 Correct 1 ms 1884 KB Output is correct
25 Correct 1 ms 1884 KB Output is correct
26 Correct 1 ms 1884 KB Output is correct
27 Correct 1 ms 1884 KB Output is correct
28 Correct 1 ms 1884 KB Output is correct
29 Correct 1 ms 1964 KB Output is correct
30 Correct 1 ms 1884 KB Output is correct
31 Correct 2 ms 1884 KB Output is correct
32 Correct 1 ms 1856 KB Output is correct
33 Correct 1 ms 1884 KB Output is correct
34 Correct 1 ms 1884 KB Output is correct
35 Correct 1 ms 1884 KB Output is correct
36 Correct 1 ms 2036 KB Output is correct
37 Correct 2 ms 1884 KB Output is correct
38 Correct 1 ms 1884 KB Output is correct
39 Correct 1 ms 1884 KB Output is correct
40 Correct 3 ms 2032 KB Output is correct
41 Correct 1 ms 1884 KB Output is correct
42 Correct 1 ms 1884 KB Output is correct
43 Correct 1 ms 1884 KB Output is correct
44 Correct 1 ms 1884 KB Output is correct
45 Correct 1 ms 1884 KB Output is correct
46 Correct 1 ms 1884 KB Output is correct
47 Correct 1 ms 1884 KB Output is correct
48 Correct 1 ms 1884 KB Output is correct
49 Correct 1 ms 1884 KB Output is correct
50 Correct 1 ms 1884 KB Output is correct
51 Correct 254 ms 3152 KB Output is correct
52 Correct 248 ms 2908 KB Output is correct
53 Correct 250 ms 3156 KB Output is correct
54 Correct 248 ms 3152 KB Output is correct
55 Correct 32 ms 1884 KB Output is correct
56 Correct 211 ms 2792 KB Output is correct
57 Correct 1 ms 1880 KB Output is correct
58 Correct 45 ms 14336 KB Output is correct
59 Correct 47 ms 14160 KB Output is correct
60 Correct 32 ms 9552 KB Output is correct
61 Correct 48 ms 14164 KB Output is correct
62 Correct 34 ms 9552 KB Output is correct
63 Correct 48 ms 14160 KB Output is correct
64 Correct 1 ms 1884 KB Output is correct
65 Correct 1 ms 1884 KB Output is correct
66 Correct 1 ms 1884 KB Output is correct
67 Correct 1 ms 1884 KB Output is correct
68 Correct 2 ms 1884 KB Output is correct
69 Correct 1 ms 1884 KB Output is correct
70 Correct 1 ms 1884 KB Output is correct
71 Correct 1 ms 1884 KB Output is correct
72 Correct 1 ms 1884 KB Output is correct
73 Correct 32 ms 2112 KB Output is correct
74 Correct 1 ms 1880 KB Output is correct
75 Correct 1 ms 1884 KB Output is correct
76 Correct 188 ms 52012 KB Output is correct
77 Correct 162 ms 47188 KB Output is correct
78 Correct 169 ms 47188 KB Output is correct
79 Correct 172 ms 52032 KB Output is correct
80 Correct 177 ms 51796 KB Output is correct
81 Correct 195 ms 51820 KB Output is correct
82 Correct 201 ms 51796 KB Output is correct
83 Correct 1 ms 1880 KB Output is correct
84 Correct 1 ms 1884 KB Output is correct
85 Correct 1 ms 1880 KB Output is correct
86 Correct 1 ms 1880 KB Output is correct
87 Correct 1 ms 1884 KB Output is correct
88 Correct 1 ms 1884 KB Output is correct
89 Correct 1 ms 1880 KB Output is correct
90 Correct 1 ms 1884 KB Output is correct
91 Correct 1 ms 1884 KB Output is correct
92 Correct 3 ms 1884 KB Output is correct
93 Correct 1 ms 1884 KB Output is correct
94 Correct 1 ms 1884 KB Output is correct
95 Correct 1 ms 1884 KB Output is correct
96 Correct 1 ms 1884 KB Output is correct
97 Correct 1 ms 1884 KB Output is correct
98 Correct 1 ms 1884 KB Output is correct
99 Correct 1 ms 1884 KB Output is correct
100 Correct 1 ms 1884 KB Output is correct
101 Correct 3 ms 1884 KB Output is correct
102 Correct 1 ms 1884 KB Output is correct
103 Correct 484 ms 70480 KB Output is correct
104 Correct 302 ms 65904 KB Output is correct
105 Correct 305 ms 65908 KB Output is correct
106 Correct 232 ms 70996 KB Output is correct
107 Correct 248 ms 70488 KB Output is correct
108 Execution timed out 4040 ms 70044 KB Time limit exceeded
109 Halted 0 ms 0 KB -