Submission #387016

# Submission time Handle Problem Language Result Execution time Memory
387016 2021-04-07T19:35:48 Z AmineWeslati Food Court (JOI21_foodcourt) C++14
100 / 100
711 ms 34028 KB
//Never stop trying
#include "bits/stdc++.h"
using namespace std;
#define boost ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)

typedef long long ll;
typedef string str;
typedef long double ld;
typedef pair<int, int> pi;
#define fi first
#define se second
typedef vector<int> vi;
typedef vector<pi> vpi;
#define pb push_back
#define eb emplace_back
#define sz(x) (int)x.size()
#define all(x) begin(x), end(x)
#define rall(x) rbegin(x), rend(x)
#define endl "\n"
#define FOR(i,a,b) for (int i = (a); i < (b); ++i)
#define ROF(i,a,b) for (int i = (b)-1; i >= (a); --i)

const int MOD = 1e9 + 7; //998244353
const ll INF = 1e18;
const int MX = 250000 + 10;
const int nx[4] = {0, 0, 1, -1}, ny[4] = {1, -1, 0, 0}; //right left down up

template<class T> using V = vector<T>;
template<class T> bool ckmin(T& a, const T& b) { return a > b ? a = b, 1 : 0; }
template<class T> bool ckmax(T& a, const T& b) { return a < b ? a = b, 1 : 0; }
ll cdiv(ll a, ll b) { return a / b + ((a ^ b) > 0 && a % b); } // divide a by b rounded up
//constexpr int log2(int x) { return 31 - __builtin_clz(x); } // floor(log2(x))

mt19937 rng(chrono::system_clock::now().time_since_epoch().count());
//mt19937_64 rng(chrono::system_clock::now().time_since_epoch().count());
ll random(ll a, ll b){
    return a + rng() % (b - a + 1);
}
#ifndef LOCAL  
#define cerr if(false) cerr
#endif
#define dbg(x) cerr << #x << " : " << x << endl; 
#define dbgs(x,y) cerr << #x << " : " << x << " / " << #y << " : " << y << endl;
#define dbgv(v) cerr << #v << " : " << "[ "; for(auto it : v) cerr << it << ' '; cerr << ']' << endl;
#define here() cerr << "here" << endl;

void IO() {
#ifdef LOCAL
    freopen("input.txt", "r", stdin); 
    freopen("output.txt", "w", stdout);
#endif
}
/////////////////////////ONLY CLEAN CODES ALLOWED/////////////////////////

int N,M,Q,ans[MX],C[MX],K[MX]; 
ll B[MX]; 
vpi q[MX]; 
vi q3[MX];

V<ll> ft(MX,0);
void upd2(int i, int v){
	i++;
	for(;i<MX; i+=i&-i) ft[i]+=v;
}
ll get(int i){
	i++;
	ll ans=0;
	for(;i;i-=i&-i) ans+=ft[i];
	return ans; 
}

ll summ(int l, int r){
	return get(r)-get(l-1);
}

const int S=90;
V<ll> a(MX,0),sum(MX,0),mnp(MX,INF);

void upd(int idx, int v){
	a[idx]+=v;
	idx/=S;
	sum[idx]=0; mnp[idx]=INF;
	FOR(i,idx*S,min((idx+1)*S,Q)){
		sum[idx]+=a[i];
		ckmin(mnp[idx],sum[idx]);
	}
}

int c; 
int solve(int idx){
	ll cur=0;
	FOR(b,0,idx/S){
		if(-mnp[b]>cur)
			cur+=-mnp[b]-cur;
		cur+=sum[b];
	}

	FOR(i,(idx/S)*S,idx+1){
		cur+=a[i];
		if(cur<0) cur=0;
	}

	if(cur<B[idx]) return 0;
	if(M==1) return c;

	ll x=cur-B[idx]+1;
	int i,l=0,r=idx;
	while(l<=r){
		int m=(l+r)/2;
		if(summ(m,idx)>=x){
			i=m;
			l=m+1;
		}
		else r=m-1;
	}
	return C[i];
}

int main() {
    boost; IO();
    memset(C,-1,sizeof(C));
    memset(ans,-1,sizeof(C));

    cin>>N>>M>>Q;
    FOR(i,0,Q){
    	int t; cin>>t;
    	if(t==1){
    		int l,r; cin>>l>>r>>C[i]>>K[i]; l--; r--;
    		q[l].eb(i,1);
    		q[r+1].eb(i,-1);
    		c=C[i];
    	}
    	else if(t==2){
    		int l,r; cin>>l>>r>>K[i]; l--; r--;
    		q[l].eb(i,1);
    		q[r+1].eb(i,-1);
    	}
    	else{
    		int idx; cin>>idx>>B[i]; idx--;
    		q3[idx].pb(i);
    	}
    }


    FOR(i,0,N){
    	for(auto it: q[i]){
    		int idx=it.fi,t=it.se;
    		if(C[idx]!=-1) upd(idx,K[idx]*t),upd2(idx,K[idx]*t);
    		else upd(idx,-K[idx]*t);
    	}
    	for(int idx: q3[i]){
    		ans[idx]=solve(idx);
    	}
    }
    FOR(i,0,Q) if(ans[i]!=-1) cout << ans[i] << endl;

    return 0;
}
//Change your approach 

Compilation message

foodcourt.cpp: In function 'int solve(int)':
foodcourt.cpp:116:12: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
  116 |  return C[i];
      |            ^
# Verdict Execution time Memory Grader output
1 Correct 17 ms 22124 KB Output is correct
2 Correct 17 ms 21996 KB Output is correct
3 Correct 16 ms 21996 KB Output is correct
4 Correct 18 ms 21996 KB Output is correct
5 Correct 16 ms 21996 KB Output is correct
6 Correct 19 ms 22144 KB Output is correct
7 Correct 17 ms 21996 KB Output is correct
8 Correct 17 ms 21996 KB Output is correct
9 Correct 17 ms 21996 KB Output is correct
10 Correct 17 ms 21996 KB Output is correct
11 Correct 17 ms 21996 KB Output is correct
12 Correct 17 ms 21996 KB Output is correct
13 Correct 16 ms 21996 KB Output is correct
14 Correct 17 ms 21996 KB Output is correct
15 Correct 17 ms 21996 KB Output is correct
16 Correct 17 ms 21996 KB Output is correct
17 Correct 19 ms 21996 KB Output is correct
18 Correct 17 ms 21996 KB Output is correct
19 Correct 17 ms 21996 KB Output is correct
20 Correct 18 ms 21996 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 17 ms 22124 KB Output is correct
2 Correct 17 ms 21996 KB Output is correct
3 Correct 16 ms 21996 KB Output is correct
4 Correct 18 ms 21996 KB Output is correct
5 Correct 16 ms 21996 KB Output is correct
6 Correct 19 ms 22144 KB Output is correct
7 Correct 17 ms 21996 KB Output is correct
8 Correct 17 ms 21996 KB Output is correct
9 Correct 17 ms 21996 KB Output is correct
10 Correct 17 ms 21996 KB Output is correct
11 Correct 17 ms 21996 KB Output is correct
12 Correct 17 ms 21996 KB Output is correct
13 Correct 16 ms 21996 KB Output is correct
14 Correct 17 ms 21996 KB Output is correct
15 Correct 17 ms 21996 KB Output is correct
16 Correct 17 ms 21996 KB Output is correct
17 Correct 19 ms 21996 KB Output is correct
18 Correct 17 ms 21996 KB Output is correct
19 Correct 17 ms 21996 KB Output is correct
20 Correct 18 ms 21996 KB Output is correct
21 Correct 17 ms 21996 KB Output is correct
22 Correct 17 ms 21996 KB Output is correct
23 Correct 17 ms 21996 KB Output is correct
24 Correct 17 ms 21996 KB Output is correct
25 Correct 16 ms 21996 KB Output is correct
26 Correct 16 ms 21996 KB Output is correct
27 Correct 18 ms 21996 KB Output is correct
28 Correct 17 ms 21996 KB Output is correct
29 Correct 17 ms 21996 KB Output is correct
30 Correct 18 ms 21996 KB Output is correct
31 Correct 17 ms 21996 KB Output is correct
32 Correct 18 ms 21996 KB Output is correct
33 Correct 16 ms 21996 KB Output is correct
34 Correct 16 ms 21996 KB Output is correct
35 Correct 17 ms 21996 KB Output is correct
36 Correct 18 ms 21996 KB Output is correct
37 Correct 19 ms 21996 KB Output is correct
38 Correct 17 ms 21996 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 108 ms 24940 KB Output is correct
2 Correct 107 ms 25068 KB Output is correct
3 Correct 108 ms 24940 KB Output is correct
4 Correct 114 ms 24972 KB Output is correct
5 Correct 116 ms 25068 KB Output is correct
6 Correct 112 ms 24940 KB Output is correct
7 Correct 66 ms 23656 KB Output is correct
8 Correct 76 ms 23620 KB Output is correct
9 Correct 124 ms 24940 KB Output is correct
10 Correct 135 ms 25068 KB Output is correct
11 Correct 133 ms 25196 KB Output is correct
12 Correct 125 ms 24940 KB Output is correct
13 Correct 96 ms 24556 KB Output is correct
14 Correct 107 ms 24948 KB Output is correct
15 Correct 97 ms 24684 KB Output is correct
16 Correct 101 ms 24940 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 550 ms 32748 KB Output is correct
2 Correct 403 ms 30572 KB Output is correct
3 Correct 583 ms 33772 KB Output is correct
4 Correct 402 ms 30976 KB Output is correct
5 Correct 385 ms 30828 KB Output is correct
6 Correct 552 ms 33772 KB Output is correct
7 Correct 343 ms 28492 KB Output is correct
8 Correct 366 ms 28348 KB Output is correct
9 Correct 654 ms 33636 KB Output is correct
10 Correct 645 ms 33388 KB Output is correct
11 Correct 634 ms 33680 KB Output is correct
12 Correct 586 ms 33772 KB Output is correct
13 Correct 619 ms 33644 KB Output is correct
14 Correct 603 ms 33744 KB Output is correct
15 Correct 586 ms 33644 KB Output is correct
16 Correct 608 ms 33516 KB Output is correct
17 Correct 566 ms 33720 KB Output is correct
18 Correct 598 ms 33644 KB Output is correct
19 Correct 583 ms 33644 KB Output is correct
20 Correct 591 ms 33612 KB Output is correct
21 Correct 583 ms 33584 KB Output is correct
22 Correct 583 ms 33644 KB Output is correct
23 Correct 576 ms 33516 KB Output is correct
24 Correct 569 ms 33516 KB Output is correct
25 Correct 484 ms 31724 KB Output is correct
26 Correct 507 ms 31952 KB Output is correct
27 Correct 494 ms 32232 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 17 ms 22124 KB Output is correct
2 Correct 17 ms 21996 KB Output is correct
3 Correct 16 ms 21996 KB Output is correct
4 Correct 18 ms 21996 KB Output is correct
5 Correct 16 ms 21996 KB Output is correct
6 Correct 19 ms 22144 KB Output is correct
7 Correct 17 ms 21996 KB Output is correct
8 Correct 17 ms 21996 KB Output is correct
9 Correct 17 ms 21996 KB Output is correct
10 Correct 17 ms 21996 KB Output is correct
11 Correct 17 ms 21996 KB Output is correct
12 Correct 17 ms 21996 KB Output is correct
13 Correct 16 ms 21996 KB Output is correct
14 Correct 17 ms 21996 KB Output is correct
15 Correct 17 ms 21996 KB Output is correct
16 Correct 17 ms 21996 KB Output is correct
17 Correct 19 ms 21996 KB Output is correct
18 Correct 17 ms 21996 KB Output is correct
19 Correct 17 ms 21996 KB Output is correct
20 Correct 18 ms 21996 KB Output is correct
21 Correct 108 ms 24940 KB Output is correct
22 Correct 107 ms 25068 KB Output is correct
23 Correct 108 ms 24940 KB Output is correct
24 Correct 114 ms 24972 KB Output is correct
25 Correct 116 ms 25068 KB Output is correct
26 Correct 112 ms 24940 KB Output is correct
27 Correct 66 ms 23656 KB Output is correct
28 Correct 76 ms 23620 KB Output is correct
29 Correct 124 ms 24940 KB Output is correct
30 Correct 135 ms 25068 KB Output is correct
31 Correct 133 ms 25196 KB Output is correct
32 Correct 125 ms 24940 KB Output is correct
33 Correct 96 ms 24556 KB Output is correct
34 Correct 107 ms 24948 KB Output is correct
35 Correct 97 ms 24684 KB Output is correct
36 Correct 101 ms 24940 KB Output is correct
37 Correct 103 ms 24684 KB Output is correct
38 Correct 87 ms 24428 KB Output is correct
39 Correct 57 ms 23400 KB Output is correct
40 Correct 69 ms 23692 KB Output is correct
41 Correct 120 ms 25068 KB Output is correct
42 Correct 118 ms 24940 KB Output is correct
43 Correct 118 ms 24940 KB Output is correct
44 Correct 117 ms 24940 KB Output is correct
45 Correct 122 ms 25068 KB Output is correct
46 Correct 109 ms 25068 KB Output is correct
47 Correct 77 ms 24020 KB Output is correct
48 Correct 96 ms 24556 KB Output is correct
49 Correct 79 ms 24172 KB Output is correct
50 Correct 93 ms 24684 KB Output is correct
51 Correct 108 ms 24940 KB Output is correct
52 Correct 110 ms 25068 KB Output is correct
53 Correct 86 ms 24372 KB Output is correct
54 Correct 104 ms 24940 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 104 ms 24684 KB Output is correct
2 Correct 118 ms 24940 KB Output is correct
3 Correct 116 ms 25068 KB Output is correct
4 Correct 83 ms 24172 KB Output is correct
5 Correct 105 ms 24556 KB Output is correct
6 Correct 124 ms 24940 KB Output is correct
7 Correct 72 ms 23516 KB Output is correct
8 Correct 70 ms 23396 KB Output is correct
9 Correct 92 ms 24164 KB Output is correct
10 Correct 74 ms 23660 KB Output is correct
11 Correct 106 ms 24300 KB Output is correct
12 Correct 106 ms 24428 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 17 ms 22124 KB Output is correct
2 Correct 17 ms 21996 KB Output is correct
3 Correct 16 ms 21996 KB Output is correct
4 Correct 18 ms 21996 KB Output is correct
5 Correct 16 ms 21996 KB Output is correct
6 Correct 19 ms 22144 KB Output is correct
7 Correct 17 ms 21996 KB Output is correct
8 Correct 17 ms 21996 KB Output is correct
9 Correct 17 ms 21996 KB Output is correct
10 Correct 17 ms 21996 KB Output is correct
11 Correct 17 ms 21996 KB Output is correct
12 Correct 17 ms 21996 KB Output is correct
13 Correct 16 ms 21996 KB Output is correct
14 Correct 17 ms 21996 KB Output is correct
15 Correct 17 ms 21996 KB Output is correct
16 Correct 17 ms 21996 KB Output is correct
17 Correct 19 ms 21996 KB Output is correct
18 Correct 17 ms 21996 KB Output is correct
19 Correct 17 ms 21996 KB Output is correct
20 Correct 18 ms 21996 KB Output is correct
21 Correct 17 ms 21996 KB Output is correct
22 Correct 17 ms 21996 KB Output is correct
23 Correct 17 ms 21996 KB Output is correct
24 Correct 17 ms 21996 KB Output is correct
25 Correct 16 ms 21996 KB Output is correct
26 Correct 16 ms 21996 KB Output is correct
27 Correct 18 ms 21996 KB Output is correct
28 Correct 17 ms 21996 KB Output is correct
29 Correct 17 ms 21996 KB Output is correct
30 Correct 18 ms 21996 KB Output is correct
31 Correct 17 ms 21996 KB Output is correct
32 Correct 18 ms 21996 KB Output is correct
33 Correct 16 ms 21996 KB Output is correct
34 Correct 16 ms 21996 KB Output is correct
35 Correct 17 ms 21996 KB Output is correct
36 Correct 18 ms 21996 KB Output is correct
37 Correct 19 ms 21996 KB Output is correct
38 Correct 17 ms 21996 KB Output is correct
39 Correct 108 ms 24940 KB Output is correct
40 Correct 107 ms 25068 KB Output is correct
41 Correct 108 ms 24940 KB Output is correct
42 Correct 114 ms 24972 KB Output is correct
43 Correct 116 ms 25068 KB Output is correct
44 Correct 112 ms 24940 KB Output is correct
45 Correct 66 ms 23656 KB Output is correct
46 Correct 76 ms 23620 KB Output is correct
47 Correct 124 ms 24940 KB Output is correct
48 Correct 135 ms 25068 KB Output is correct
49 Correct 133 ms 25196 KB Output is correct
50 Correct 125 ms 24940 KB Output is correct
51 Correct 96 ms 24556 KB Output is correct
52 Correct 107 ms 24948 KB Output is correct
53 Correct 97 ms 24684 KB Output is correct
54 Correct 101 ms 24940 KB Output is correct
55 Correct 103 ms 24684 KB Output is correct
56 Correct 87 ms 24428 KB Output is correct
57 Correct 57 ms 23400 KB Output is correct
58 Correct 69 ms 23692 KB Output is correct
59 Correct 120 ms 25068 KB Output is correct
60 Correct 118 ms 24940 KB Output is correct
61 Correct 118 ms 24940 KB Output is correct
62 Correct 117 ms 24940 KB Output is correct
63 Correct 122 ms 25068 KB Output is correct
64 Correct 109 ms 25068 KB Output is correct
65 Correct 77 ms 24020 KB Output is correct
66 Correct 96 ms 24556 KB Output is correct
67 Correct 79 ms 24172 KB Output is correct
68 Correct 93 ms 24684 KB Output is correct
69 Correct 108 ms 24940 KB Output is correct
70 Correct 110 ms 25068 KB Output is correct
71 Correct 86 ms 24372 KB Output is correct
72 Correct 104 ms 24940 KB Output is correct
73 Correct 104 ms 24684 KB Output is correct
74 Correct 118 ms 24940 KB Output is correct
75 Correct 116 ms 25068 KB Output is correct
76 Correct 83 ms 24172 KB Output is correct
77 Correct 105 ms 24556 KB Output is correct
78 Correct 124 ms 24940 KB Output is correct
79 Correct 72 ms 23516 KB Output is correct
80 Correct 70 ms 23396 KB Output is correct
81 Correct 92 ms 24164 KB Output is correct
82 Correct 74 ms 23660 KB Output is correct
83 Correct 106 ms 24300 KB Output is correct
84 Correct 106 ms 24428 KB Output is correct
85 Correct 105 ms 24616 KB Output is correct
86 Correct 119 ms 24976 KB Output is correct
87 Correct 99 ms 24684 KB Output is correct
88 Correct 113 ms 24940 KB Output is correct
89 Correct 88 ms 24044 KB Output is correct
90 Correct 124 ms 24940 KB Output is correct
91 Correct 100 ms 24300 KB Output is correct
92 Correct 89 ms 24172 KB Output is correct
93 Correct 115 ms 24940 KB Output is correct
94 Correct 124 ms 24940 KB Output is correct
95 Correct 116 ms 24812 KB Output is correct
96 Correct 120 ms 25068 KB Output is correct
97 Correct 123 ms 24940 KB Output is correct
98 Correct 101 ms 24556 KB Output is correct
99 Correct 85 ms 24008 KB Output is correct
100 Correct 89 ms 24044 KB Output is correct
101 Correct 102 ms 24556 KB Output is correct
102 Correct 112 ms 24556 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 17 ms 22124 KB Output is correct
2 Correct 17 ms 21996 KB Output is correct
3 Correct 16 ms 21996 KB Output is correct
4 Correct 18 ms 21996 KB Output is correct
5 Correct 16 ms 21996 KB Output is correct
6 Correct 19 ms 22144 KB Output is correct
7 Correct 17 ms 21996 KB Output is correct
8 Correct 17 ms 21996 KB Output is correct
9 Correct 17 ms 21996 KB Output is correct
10 Correct 17 ms 21996 KB Output is correct
11 Correct 17 ms 21996 KB Output is correct
12 Correct 17 ms 21996 KB Output is correct
13 Correct 16 ms 21996 KB Output is correct
14 Correct 17 ms 21996 KB Output is correct
15 Correct 17 ms 21996 KB Output is correct
16 Correct 17 ms 21996 KB Output is correct
17 Correct 19 ms 21996 KB Output is correct
18 Correct 17 ms 21996 KB Output is correct
19 Correct 17 ms 21996 KB Output is correct
20 Correct 18 ms 21996 KB Output is correct
21 Correct 17 ms 21996 KB Output is correct
22 Correct 17 ms 21996 KB Output is correct
23 Correct 17 ms 21996 KB Output is correct
24 Correct 17 ms 21996 KB Output is correct
25 Correct 16 ms 21996 KB Output is correct
26 Correct 16 ms 21996 KB Output is correct
27 Correct 18 ms 21996 KB Output is correct
28 Correct 17 ms 21996 KB Output is correct
29 Correct 17 ms 21996 KB Output is correct
30 Correct 18 ms 21996 KB Output is correct
31 Correct 17 ms 21996 KB Output is correct
32 Correct 18 ms 21996 KB Output is correct
33 Correct 16 ms 21996 KB Output is correct
34 Correct 16 ms 21996 KB Output is correct
35 Correct 17 ms 21996 KB Output is correct
36 Correct 18 ms 21996 KB Output is correct
37 Correct 19 ms 21996 KB Output is correct
38 Correct 17 ms 21996 KB Output is correct
39 Correct 108 ms 24940 KB Output is correct
40 Correct 107 ms 25068 KB Output is correct
41 Correct 108 ms 24940 KB Output is correct
42 Correct 114 ms 24972 KB Output is correct
43 Correct 116 ms 25068 KB Output is correct
44 Correct 112 ms 24940 KB Output is correct
45 Correct 66 ms 23656 KB Output is correct
46 Correct 76 ms 23620 KB Output is correct
47 Correct 124 ms 24940 KB Output is correct
48 Correct 135 ms 25068 KB Output is correct
49 Correct 133 ms 25196 KB Output is correct
50 Correct 125 ms 24940 KB Output is correct
51 Correct 96 ms 24556 KB Output is correct
52 Correct 107 ms 24948 KB Output is correct
53 Correct 97 ms 24684 KB Output is correct
54 Correct 101 ms 24940 KB Output is correct
55 Correct 550 ms 32748 KB Output is correct
56 Correct 403 ms 30572 KB Output is correct
57 Correct 583 ms 33772 KB Output is correct
58 Correct 402 ms 30976 KB Output is correct
59 Correct 385 ms 30828 KB Output is correct
60 Correct 552 ms 33772 KB Output is correct
61 Correct 343 ms 28492 KB Output is correct
62 Correct 366 ms 28348 KB Output is correct
63 Correct 654 ms 33636 KB Output is correct
64 Correct 645 ms 33388 KB Output is correct
65 Correct 634 ms 33680 KB Output is correct
66 Correct 586 ms 33772 KB Output is correct
67 Correct 619 ms 33644 KB Output is correct
68 Correct 603 ms 33744 KB Output is correct
69 Correct 586 ms 33644 KB Output is correct
70 Correct 608 ms 33516 KB Output is correct
71 Correct 566 ms 33720 KB Output is correct
72 Correct 598 ms 33644 KB Output is correct
73 Correct 583 ms 33644 KB Output is correct
74 Correct 591 ms 33612 KB Output is correct
75 Correct 583 ms 33584 KB Output is correct
76 Correct 583 ms 33644 KB Output is correct
77 Correct 576 ms 33516 KB Output is correct
78 Correct 569 ms 33516 KB Output is correct
79 Correct 484 ms 31724 KB Output is correct
80 Correct 507 ms 31952 KB Output is correct
81 Correct 494 ms 32232 KB Output is correct
82 Correct 103 ms 24684 KB Output is correct
83 Correct 87 ms 24428 KB Output is correct
84 Correct 57 ms 23400 KB Output is correct
85 Correct 69 ms 23692 KB Output is correct
86 Correct 120 ms 25068 KB Output is correct
87 Correct 118 ms 24940 KB Output is correct
88 Correct 118 ms 24940 KB Output is correct
89 Correct 117 ms 24940 KB Output is correct
90 Correct 122 ms 25068 KB Output is correct
91 Correct 109 ms 25068 KB Output is correct
92 Correct 77 ms 24020 KB Output is correct
93 Correct 96 ms 24556 KB Output is correct
94 Correct 79 ms 24172 KB Output is correct
95 Correct 93 ms 24684 KB Output is correct
96 Correct 108 ms 24940 KB Output is correct
97 Correct 110 ms 25068 KB Output is correct
98 Correct 86 ms 24372 KB Output is correct
99 Correct 104 ms 24940 KB Output is correct
100 Correct 104 ms 24684 KB Output is correct
101 Correct 118 ms 24940 KB Output is correct
102 Correct 116 ms 25068 KB Output is correct
103 Correct 83 ms 24172 KB Output is correct
104 Correct 105 ms 24556 KB Output is correct
105 Correct 124 ms 24940 KB Output is correct
106 Correct 72 ms 23516 KB Output is correct
107 Correct 70 ms 23396 KB Output is correct
108 Correct 92 ms 24164 KB Output is correct
109 Correct 74 ms 23660 KB Output is correct
110 Correct 106 ms 24300 KB Output is correct
111 Correct 106 ms 24428 KB Output is correct
112 Correct 105 ms 24616 KB Output is correct
113 Correct 119 ms 24976 KB Output is correct
114 Correct 99 ms 24684 KB Output is correct
115 Correct 113 ms 24940 KB Output is correct
116 Correct 88 ms 24044 KB Output is correct
117 Correct 124 ms 24940 KB Output is correct
118 Correct 100 ms 24300 KB Output is correct
119 Correct 89 ms 24172 KB Output is correct
120 Correct 115 ms 24940 KB Output is correct
121 Correct 124 ms 24940 KB Output is correct
122 Correct 116 ms 24812 KB Output is correct
123 Correct 120 ms 25068 KB Output is correct
124 Correct 123 ms 24940 KB Output is correct
125 Correct 101 ms 24556 KB Output is correct
126 Correct 85 ms 24008 KB Output is correct
127 Correct 89 ms 24044 KB Output is correct
128 Correct 102 ms 24556 KB Output is correct
129 Correct 112 ms 24556 KB Output is correct
130 Correct 645 ms 33900 KB Output is correct
131 Correct 432 ms 30712 KB Output is correct
132 Correct 680 ms 34028 KB Output is correct
133 Correct 564 ms 33388 KB Output is correct
134 Correct 486 ms 32364 KB Output is correct
135 Correct 605 ms 33900 KB Output is correct
136 Correct 711 ms 33772 KB Output is correct
137 Correct 709 ms 33772 KB Output is correct
138 Correct 670 ms 33900 KB Output is correct
139 Correct 636 ms 33736 KB Output is correct
140 Correct 664 ms 33772 KB Output is correct
141 Correct 645 ms 33748 KB Output is correct
142 Correct 609 ms 33900 KB Output is correct
143 Correct 617 ms 33780 KB Output is correct
144 Correct 631 ms 33900 KB Output is correct
145 Correct 621 ms 33772 KB Output is correct
146 Correct 627 ms 33772 KB Output is correct
147 Correct 622 ms 33772 KB Output is correct
148 Correct 632 ms 33900 KB Output is correct
149 Correct 604 ms 33848 KB Output is correct
150 Correct 439 ms 30156 KB Output is correct
151 Correct 548 ms 32108 KB Output is correct
152 Correct 563 ms 32236 KB Output is correct
153 Correct 532 ms 32272 KB Output is correct