답안 #460943

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
460943 2021-08-09T11:17:59 Z PixelCat 푸드 코트 (JOI21_foodcourt) C++14
100 / 100
574 ms 51564 KB
/*    code by the cute PixelCat owo    */
/*     as cute as nyachoneko chan!     */
#pragma GCC optimize("O4,unroll-loops,no-stack-protector")
#include <bits/stdc++.h>
#define int ll //__int128
#define double long double
using namespace std;
using ll=long long;
using ull=unsigned long long;
using pii=pair<int,int>;

#define For(i,a,b)    for(int i=a;i<=b;i++)
#define Fors(i,a,b,s) for(int i=a;i<=b;i+=s)
#define Forr(i,a,b)   for(int i=a;i>=b;i--)
#define F first
#define S second
#define L(id) (id*2+1)
#define R(id) (id*2+2)
#define LO(x) (x&(-x))

#define eb emplace_back
#define all(x) x.begin(),x.end()
#define sz(x) ((int)x.size())
#define mkp make_pair

#define MOD (int)(1000000007)
#define INF (int)(1e17)
#define EPS (1e-6)

#ifdef NYAOWO
	#define debug(...) do{\
		cerr << __LINE__ <<\
		" : ("#__VA_ARGS__ << ") = ";\
		_OUT(__VA_ARGS__);\
		cerr << flush;\
	}while(0)
	template<typename T> void _OUT(T _X) { cerr << _X << "\n"; }
	template<typename T,typename...I>
	void _OUT(T _X,I ...tail) { cerr << _X << ", "; _OUT(tail...); }
	inline void USACO(const string &s) { cerr<<"USACO: "<<s<<"\n"; }
#else
	#define debug(...)
	inline void USACO(const string &s){
		freopen((s+".in").c_str(),"r",stdin);
		freopen((s+".out").c_str(),"w",stdout);
	}
#endif

inline void NYA(){ ios::sync_with_stdio(false); cin.tie(0); }
inline int gcd(int a,int b) { return __gcd(a,b); }
inline int lcm(int a,int b) { return a/gcd(a,b)*b; }
int fpow(int b,int p,const int &mod){
	int ans=1;
	while(p){
		if(p&1) ans=ans*b%mod;
		p/=2; b=b*b%mod;
	}
	return ans;
}
int fpow(int b,int p) { return fpow(b,p,MOD); }
template<typename T> inline void chmin(T &_a,const T &_b) { if(_b<_a) _a=_b; }
template<typename T> inline void chmax(T &_a,const T &_b) { if(_b>_a) _a=_b; }
template<typename T1,typename T2>
ostream& operator<<(ostream &os,pair<T1,T2> p){
	os<<"("<<p.F<<","<<p.S<<")";
	return os;
}
template<typename T>
ostream& operator<<(ostream &os,const vector<T> &v){
	os<<"[";
	for(auto &i:v)
		os<<" "<<i<<",";
	os<<"]";
	return os;
}
template<typename T>
ostream& operator<<(ostream &os,const deque<T> &v){
	os<<"[";
	for(auto &i:v)
		os<<" "<<i<<",";
	os<<"]";
	return os;
}
//mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());

#define MAXN 250000
struct SegTree{
	int sum[MAXN*4+10];
	int mn[MAXN*4+10];
	void pull(int id){
		sum[id]=sum[L(id)]+sum[R(id)];
		mn[id]=min(mn[L(id)],sum[L(id)]+mn[R(id)]);
	}
	void upd(int p,int x,int id=0,int l=0,int r=MAXN){
		if(l==r){
			sum[id]=mn[id]=x;
			return;
		}
		int m=(l+r)/2;
		if(p<=m) upd(p,x,L(id),l,m);
		else     upd(p,x,R(id),m+1,r);
		pull(id);
	}
	int qrymin(int L,int R,int id=0,int l=0,int r=MAXN){
		if(l>=L && r<=R) return mn[id];
		int m=(l+r)/2;
		if(R<=m) return qrymin(L,R,L(id),l,m);
		else if(L>m) return sum[L(id)]+qrymin(L,R,R(id),m+1,r);
		return min(qrymin(L,R,L(id),l,m),sum[L(id)]+qrymin(L,R,R(id),m+1,r));
	}
	int find(int x,int id=0,int l=0,int r=MAXN){
		if(l==r) return l;
		int m=(l+r)/2;
		if(sum[L(id)]>=x) return find(x,L(id),l,m);
		return find(x-sum[L(id)],R(id),m+1,r);
	}
}cnt,pos;

vector<pii> op[MAXN+10]; //pair(pos,value)
int grp[MAXN+10];
vector<pii> qry[MAXN+10]; //pair(pos,value)
int ans[MAXN+10];

int32_t main(){
	NYA();
	//nyaacho >/////<
	int N,M,Q; cin>>N>>M>>Q;
	For(i,1,Q){
		int o; cin>>o;
		if(o==1){
			int l,r,c,k; cin>>l>>r>>c>>k;
			grp[i]=c;
			op[l].eb(i,k);
			op[r+1].eb(i,0);
		}else if(o==2){
			int l,r,k; cin>>l>>r>>k;
			op[l].eb(i,-k);
			op[r+1].eb(i,0);
		}else{
			int a,b; cin>>a>>b;
			qry[a].eb(i,b);
		}
	}
	memset(ans,-1,sizeof(ans));
	For(i,1,N){
		for(auto &o:op[i]){
			cnt.upd(o.F,o.S);
			if(o.S>=0) pos.upd(o.F,o.S);
		}
		//For(j,0,Q) cerr<<mkp(cnt.qrymin(j,j),pos.qrymin(j,j))<<" \n"[j==Q];
		for(auto &q:qry[i]){
			int now=cnt.qrymin(q.F,q.F)-cnt.qrymin(0,q.F);
			if(q.S>now){
				ans[q.F]=0;
			}else{
				q.S=now-q.S+1;
				q.S=pos.qrymin(q.F,q.F)-q.S+1;
				ans[q.F]=grp[pos.find(q.S)];
			}
		}
	}
	For(i,1,Q) if(ans[i]!=-1) cout<<ans[i]<<"\n";
	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 14412 KB Output is correct
2 Correct 12 ms 14400 KB Output is correct
3 Correct 11 ms 14396 KB Output is correct
4 Correct 12 ms 14392 KB Output is correct
5 Correct 11 ms 14412 KB Output is correct
6 Correct 11 ms 14396 KB Output is correct
7 Correct 12 ms 14508 KB Output is correct
8 Correct 12 ms 14460 KB Output is correct
9 Correct 12 ms 14412 KB Output is correct
10 Correct 12 ms 14412 KB Output is correct
11 Correct 12 ms 14400 KB Output is correct
12 Correct 12 ms 14412 KB Output is correct
13 Correct 11 ms 14480 KB Output is correct
14 Correct 11 ms 14520 KB Output is correct
15 Correct 11 ms 14412 KB Output is correct
16 Correct 12 ms 14412 KB Output is correct
17 Correct 11 ms 14396 KB Output is correct
18 Correct 12 ms 14412 KB Output is correct
19 Correct 12 ms 14372 KB Output is correct
20 Correct 12 ms 14412 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 14412 KB Output is correct
2 Correct 12 ms 14400 KB Output is correct
3 Correct 11 ms 14396 KB Output is correct
4 Correct 12 ms 14392 KB Output is correct
5 Correct 11 ms 14412 KB Output is correct
6 Correct 11 ms 14396 KB Output is correct
7 Correct 12 ms 14508 KB Output is correct
8 Correct 12 ms 14460 KB Output is correct
9 Correct 12 ms 14412 KB Output is correct
10 Correct 12 ms 14412 KB Output is correct
11 Correct 12 ms 14400 KB Output is correct
12 Correct 12 ms 14412 KB Output is correct
13 Correct 11 ms 14480 KB Output is correct
14 Correct 11 ms 14520 KB Output is correct
15 Correct 11 ms 14412 KB Output is correct
16 Correct 12 ms 14412 KB Output is correct
17 Correct 11 ms 14396 KB Output is correct
18 Correct 12 ms 14412 KB Output is correct
19 Correct 12 ms 14372 KB Output is correct
20 Correct 12 ms 14412 KB Output is correct
21 Correct 13 ms 14396 KB Output is correct
22 Correct 12 ms 14524 KB Output is correct
23 Correct 12 ms 14412 KB Output is correct
24 Correct 13 ms 14412 KB Output is correct
25 Correct 11 ms 14412 KB Output is correct
26 Correct 11 ms 14460 KB Output is correct
27 Correct 14 ms 14452 KB Output is correct
28 Correct 12 ms 14412 KB Output is correct
29 Correct 12 ms 14412 KB Output is correct
30 Correct 12 ms 14412 KB Output is correct
31 Correct 14 ms 14424 KB Output is correct
32 Correct 12 ms 14460 KB Output is correct
33 Correct 11 ms 14412 KB Output is correct
34 Correct 12 ms 14540 KB Output is correct
35 Correct 11 ms 14412 KB Output is correct
36 Correct 12 ms 14528 KB Output is correct
37 Correct 11 ms 14384 KB Output is correct
38 Correct 12 ms 14464 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 95 ms 23092 KB Output is correct
2 Correct 103 ms 23216 KB Output is correct
3 Correct 98 ms 23020 KB Output is correct
4 Correct 94 ms 23088 KB Output is correct
5 Correct 107 ms 23220 KB Output is correct
6 Correct 100 ms 23144 KB Output is correct
7 Correct 49 ms 21132 KB Output is correct
8 Correct 53 ms 21392 KB Output is correct
9 Correct 97 ms 22968 KB Output is correct
10 Correct 99 ms 23236 KB Output is correct
11 Correct 100 ms 23108 KB Output is correct
12 Correct 97 ms 23228 KB Output is correct
13 Correct 86 ms 22048 KB Output is correct
14 Correct 99 ms 22976 KB Output is correct
15 Correct 106 ms 23304 KB Output is correct
16 Correct 106 ms 23328 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 496 ms 46668 KB Output is correct
2 Correct 386 ms 40168 KB Output is correct
3 Correct 504 ms 49520 KB Output is correct
4 Correct 372 ms 40388 KB Output is correct
5 Correct 384 ms 40792 KB Output is correct
6 Correct 545 ms 50332 KB Output is correct
7 Correct 179 ms 45288 KB Output is correct
8 Correct 197 ms 44288 KB Output is correct
9 Correct 546 ms 48972 KB Output is correct
10 Correct 519 ms 49076 KB Output is correct
11 Correct 513 ms 49096 KB Output is correct
12 Correct 514 ms 50068 KB Output is correct
13 Correct 545 ms 49184 KB Output is correct
14 Correct 503 ms 50024 KB Output is correct
15 Correct 508 ms 49948 KB Output is correct
16 Correct 519 ms 49944 KB Output is correct
17 Correct 506 ms 49860 KB Output is correct
18 Correct 524 ms 49548 KB Output is correct
19 Correct 568 ms 50024 KB Output is correct
20 Correct 510 ms 49500 KB Output is correct
21 Correct 528 ms 49976 KB Output is correct
22 Correct 500 ms 50000 KB Output is correct
23 Correct 508 ms 49896 KB Output is correct
24 Correct 511 ms 49944 KB Output is correct
25 Correct 410 ms 49176 KB Output is correct
26 Correct 419 ms 49892 KB Output is correct
27 Correct 381 ms 50556 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 14412 KB Output is correct
2 Correct 12 ms 14400 KB Output is correct
3 Correct 11 ms 14396 KB Output is correct
4 Correct 12 ms 14392 KB Output is correct
5 Correct 11 ms 14412 KB Output is correct
6 Correct 11 ms 14396 KB Output is correct
7 Correct 12 ms 14508 KB Output is correct
8 Correct 12 ms 14460 KB Output is correct
9 Correct 12 ms 14412 KB Output is correct
10 Correct 12 ms 14412 KB Output is correct
11 Correct 12 ms 14400 KB Output is correct
12 Correct 12 ms 14412 KB Output is correct
13 Correct 11 ms 14480 KB Output is correct
14 Correct 11 ms 14520 KB Output is correct
15 Correct 11 ms 14412 KB Output is correct
16 Correct 12 ms 14412 KB Output is correct
17 Correct 11 ms 14396 KB Output is correct
18 Correct 12 ms 14412 KB Output is correct
19 Correct 12 ms 14372 KB Output is correct
20 Correct 12 ms 14412 KB Output is correct
21 Correct 95 ms 23092 KB Output is correct
22 Correct 103 ms 23216 KB Output is correct
23 Correct 98 ms 23020 KB Output is correct
24 Correct 94 ms 23088 KB Output is correct
25 Correct 107 ms 23220 KB Output is correct
26 Correct 100 ms 23144 KB Output is correct
27 Correct 49 ms 21132 KB Output is correct
28 Correct 53 ms 21392 KB Output is correct
29 Correct 97 ms 22968 KB Output is correct
30 Correct 99 ms 23236 KB Output is correct
31 Correct 100 ms 23108 KB Output is correct
32 Correct 97 ms 23228 KB Output is correct
33 Correct 86 ms 22048 KB Output is correct
34 Correct 99 ms 22976 KB Output is correct
35 Correct 106 ms 23304 KB Output is correct
36 Correct 106 ms 23328 KB Output is correct
37 Correct 83 ms 21956 KB Output is correct
38 Correct 84 ms 21316 KB Output is correct
39 Correct 43 ms 20328 KB Output is correct
40 Correct 50 ms 21012 KB Output is correct
41 Correct 96 ms 22796 KB Output is correct
42 Correct 126 ms 23060 KB Output is correct
43 Correct 101 ms 23092 KB Output is correct
44 Correct 99 ms 22968 KB Output is correct
45 Correct 99 ms 23036 KB Output is correct
46 Correct 116 ms 23012 KB Output is correct
47 Correct 64 ms 21984 KB Output is correct
48 Correct 99 ms 22968 KB Output is correct
49 Correct 66 ms 20420 KB Output is correct
50 Correct 86 ms 21808 KB Output is correct
51 Correct 112 ms 23084 KB Output is correct
52 Correct 101 ms 23052 KB Output is correct
53 Correct 77 ms 21320 KB Output is correct
54 Correct 98 ms 23372 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 102 ms 22416 KB Output is correct
2 Correct 105 ms 23224 KB Output is correct
3 Correct 115 ms 23476 KB Output is correct
4 Correct 80 ms 20676 KB Output is correct
5 Correct 91 ms 22156 KB Output is correct
6 Correct 107 ms 23388 KB Output is correct
7 Correct 54 ms 21220 KB Output is correct
8 Correct 52 ms 20704 KB Output is correct
9 Correct 76 ms 22636 KB Output is correct
10 Correct 66 ms 20500 KB Output is correct
11 Correct 110 ms 23084 KB Output is correct
12 Correct 101 ms 23024 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 14412 KB Output is correct
2 Correct 12 ms 14400 KB Output is correct
3 Correct 11 ms 14396 KB Output is correct
4 Correct 12 ms 14392 KB Output is correct
5 Correct 11 ms 14412 KB Output is correct
6 Correct 11 ms 14396 KB Output is correct
7 Correct 12 ms 14508 KB Output is correct
8 Correct 12 ms 14460 KB Output is correct
9 Correct 12 ms 14412 KB Output is correct
10 Correct 12 ms 14412 KB Output is correct
11 Correct 12 ms 14400 KB Output is correct
12 Correct 12 ms 14412 KB Output is correct
13 Correct 11 ms 14480 KB Output is correct
14 Correct 11 ms 14520 KB Output is correct
15 Correct 11 ms 14412 KB Output is correct
16 Correct 12 ms 14412 KB Output is correct
17 Correct 11 ms 14396 KB Output is correct
18 Correct 12 ms 14412 KB Output is correct
19 Correct 12 ms 14372 KB Output is correct
20 Correct 12 ms 14412 KB Output is correct
21 Correct 13 ms 14396 KB Output is correct
22 Correct 12 ms 14524 KB Output is correct
23 Correct 12 ms 14412 KB Output is correct
24 Correct 13 ms 14412 KB Output is correct
25 Correct 11 ms 14412 KB Output is correct
26 Correct 11 ms 14460 KB Output is correct
27 Correct 14 ms 14452 KB Output is correct
28 Correct 12 ms 14412 KB Output is correct
29 Correct 12 ms 14412 KB Output is correct
30 Correct 12 ms 14412 KB Output is correct
31 Correct 14 ms 14424 KB Output is correct
32 Correct 12 ms 14460 KB Output is correct
33 Correct 11 ms 14412 KB Output is correct
34 Correct 12 ms 14540 KB Output is correct
35 Correct 11 ms 14412 KB Output is correct
36 Correct 12 ms 14528 KB Output is correct
37 Correct 11 ms 14384 KB Output is correct
38 Correct 12 ms 14464 KB Output is correct
39 Correct 95 ms 23092 KB Output is correct
40 Correct 103 ms 23216 KB Output is correct
41 Correct 98 ms 23020 KB Output is correct
42 Correct 94 ms 23088 KB Output is correct
43 Correct 107 ms 23220 KB Output is correct
44 Correct 100 ms 23144 KB Output is correct
45 Correct 49 ms 21132 KB Output is correct
46 Correct 53 ms 21392 KB Output is correct
47 Correct 97 ms 22968 KB Output is correct
48 Correct 99 ms 23236 KB Output is correct
49 Correct 100 ms 23108 KB Output is correct
50 Correct 97 ms 23228 KB Output is correct
51 Correct 86 ms 22048 KB Output is correct
52 Correct 99 ms 22976 KB Output is correct
53 Correct 106 ms 23304 KB Output is correct
54 Correct 106 ms 23328 KB Output is correct
55 Correct 83 ms 21956 KB Output is correct
56 Correct 84 ms 21316 KB Output is correct
57 Correct 43 ms 20328 KB Output is correct
58 Correct 50 ms 21012 KB Output is correct
59 Correct 96 ms 22796 KB Output is correct
60 Correct 126 ms 23060 KB Output is correct
61 Correct 101 ms 23092 KB Output is correct
62 Correct 99 ms 22968 KB Output is correct
63 Correct 99 ms 23036 KB Output is correct
64 Correct 116 ms 23012 KB Output is correct
65 Correct 64 ms 21984 KB Output is correct
66 Correct 99 ms 22968 KB Output is correct
67 Correct 66 ms 20420 KB Output is correct
68 Correct 86 ms 21808 KB Output is correct
69 Correct 112 ms 23084 KB Output is correct
70 Correct 101 ms 23052 KB Output is correct
71 Correct 77 ms 21320 KB Output is correct
72 Correct 98 ms 23372 KB Output is correct
73 Correct 102 ms 22416 KB Output is correct
74 Correct 105 ms 23224 KB Output is correct
75 Correct 115 ms 23476 KB Output is correct
76 Correct 80 ms 20676 KB Output is correct
77 Correct 91 ms 22156 KB Output is correct
78 Correct 107 ms 23388 KB Output is correct
79 Correct 54 ms 21220 KB Output is correct
80 Correct 52 ms 20704 KB Output is correct
81 Correct 76 ms 22636 KB Output is correct
82 Correct 66 ms 20500 KB Output is correct
83 Correct 110 ms 23084 KB Output is correct
84 Correct 101 ms 23024 KB Output is correct
85 Correct 96 ms 22648 KB Output is correct
86 Correct 121 ms 23468 KB Output is correct
87 Correct 108 ms 22456 KB Output is correct
88 Correct 107 ms 23620 KB Output is correct
89 Correct 66 ms 20324 KB Output is correct
90 Correct 107 ms 23592 KB Output is correct
91 Correct 84 ms 21928 KB Output is correct
92 Correct 85 ms 21436 KB Output is correct
93 Correct 114 ms 23572 KB Output is correct
94 Correct 119 ms 23464 KB Output is correct
95 Correct 119 ms 23352 KB Output is correct
96 Correct 107 ms 23604 KB Output is correct
97 Correct 104 ms 23620 KB Output is correct
98 Correct 93 ms 22112 KB Output is correct
99 Correct 65 ms 22428 KB Output is correct
100 Correct 74 ms 21788 KB Output is correct
101 Correct 95 ms 23476 KB Output is correct
102 Correct 94 ms 23900 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 14412 KB Output is correct
2 Correct 12 ms 14400 KB Output is correct
3 Correct 11 ms 14396 KB Output is correct
4 Correct 12 ms 14392 KB Output is correct
5 Correct 11 ms 14412 KB Output is correct
6 Correct 11 ms 14396 KB Output is correct
7 Correct 12 ms 14508 KB Output is correct
8 Correct 12 ms 14460 KB Output is correct
9 Correct 12 ms 14412 KB Output is correct
10 Correct 12 ms 14412 KB Output is correct
11 Correct 12 ms 14400 KB Output is correct
12 Correct 12 ms 14412 KB Output is correct
13 Correct 11 ms 14480 KB Output is correct
14 Correct 11 ms 14520 KB Output is correct
15 Correct 11 ms 14412 KB Output is correct
16 Correct 12 ms 14412 KB Output is correct
17 Correct 11 ms 14396 KB Output is correct
18 Correct 12 ms 14412 KB Output is correct
19 Correct 12 ms 14372 KB Output is correct
20 Correct 12 ms 14412 KB Output is correct
21 Correct 13 ms 14396 KB Output is correct
22 Correct 12 ms 14524 KB Output is correct
23 Correct 12 ms 14412 KB Output is correct
24 Correct 13 ms 14412 KB Output is correct
25 Correct 11 ms 14412 KB Output is correct
26 Correct 11 ms 14460 KB Output is correct
27 Correct 14 ms 14452 KB Output is correct
28 Correct 12 ms 14412 KB Output is correct
29 Correct 12 ms 14412 KB Output is correct
30 Correct 12 ms 14412 KB Output is correct
31 Correct 14 ms 14424 KB Output is correct
32 Correct 12 ms 14460 KB Output is correct
33 Correct 11 ms 14412 KB Output is correct
34 Correct 12 ms 14540 KB Output is correct
35 Correct 11 ms 14412 KB Output is correct
36 Correct 12 ms 14528 KB Output is correct
37 Correct 11 ms 14384 KB Output is correct
38 Correct 12 ms 14464 KB Output is correct
39 Correct 95 ms 23092 KB Output is correct
40 Correct 103 ms 23216 KB Output is correct
41 Correct 98 ms 23020 KB Output is correct
42 Correct 94 ms 23088 KB Output is correct
43 Correct 107 ms 23220 KB Output is correct
44 Correct 100 ms 23144 KB Output is correct
45 Correct 49 ms 21132 KB Output is correct
46 Correct 53 ms 21392 KB Output is correct
47 Correct 97 ms 22968 KB Output is correct
48 Correct 99 ms 23236 KB Output is correct
49 Correct 100 ms 23108 KB Output is correct
50 Correct 97 ms 23228 KB Output is correct
51 Correct 86 ms 22048 KB Output is correct
52 Correct 99 ms 22976 KB Output is correct
53 Correct 106 ms 23304 KB Output is correct
54 Correct 106 ms 23328 KB Output is correct
55 Correct 496 ms 46668 KB Output is correct
56 Correct 386 ms 40168 KB Output is correct
57 Correct 504 ms 49520 KB Output is correct
58 Correct 372 ms 40388 KB Output is correct
59 Correct 384 ms 40792 KB Output is correct
60 Correct 545 ms 50332 KB Output is correct
61 Correct 179 ms 45288 KB Output is correct
62 Correct 197 ms 44288 KB Output is correct
63 Correct 546 ms 48972 KB Output is correct
64 Correct 519 ms 49076 KB Output is correct
65 Correct 513 ms 49096 KB Output is correct
66 Correct 514 ms 50068 KB Output is correct
67 Correct 545 ms 49184 KB Output is correct
68 Correct 503 ms 50024 KB Output is correct
69 Correct 508 ms 49948 KB Output is correct
70 Correct 519 ms 49944 KB Output is correct
71 Correct 506 ms 49860 KB Output is correct
72 Correct 524 ms 49548 KB Output is correct
73 Correct 568 ms 50024 KB Output is correct
74 Correct 510 ms 49500 KB Output is correct
75 Correct 528 ms 49976 KB Output is correct
76 Correct 500 ms 50000 KB Output is correct
77 Correct 508 ms 49896 KB Output is correct
78 Correct 511 ms 49944 KB Output is correct
79 Correct 410 ms 49176 KB Output is correct
80 Correct 419 ms 49892 KB Output is correct
81 Correct 381 ms 50556 KB Output is correct
82 Correct 83 ms 21956 KB Output is correct
83 Correct 84 ms 21316 KB Output is correct
84 Correct 43 ms 20328 KB Output is correct
85 Correct 50 ms 21012 KB Output is correct
86 Correct 96 ms 22796 KB Output is correct
87 Correct 126 ms 23060 KB Output is correct
88 Correct 101 ms 23092 KB Output is correct
89 Correct 99 ms 22968 KB Output is correct
90 Correct 99 ms 23036 KB Output is correct
91 Correct 116 ms 23012 KB Output is correct
92 Correct 64 ms 21984 KB Output is correct
93 Correct 99 ms 22968 KB Output is correct
94 Correct 66 ms 20420 KB Output is correct
95 Correct 86 ms 21808 KB Output is correct
96 Correct 112 ms 23084 KB Output is correct
97 Correct 101 ms 23052 KB Output is correct
98 Correct 77 ms 21320 KB Output is correct
99 Correct 98 ms 23372 KB Output is correct
100 Correct 102 ms 22416 KB Output is correct
101 Correct 105 ms 23224 KB Output is correct
102 Correct 115 ms 23476 KB Output is correct
103 Correct 80 ms 20676 KB Output is correct
104 Correct 91 ms 22156 KB Output is correct
105 Correct 107 ms 23388 KB Output is correct
106 Correct 54 ms 21220 KB Output is correct
107 Correct 52 ms 20704 KB Output is correct
108 Correct 76 ms 22636 KB Output is correct
109 Correct 66 ms 20500 KB Output is correct
110 Correct 110 ms 23084 KB Output is correct
111 Correct 101 ms 23024 KB Output is correct
112 Correct 96 ms 22648 KB Output is correct
113 Correct 121 ms 23468 KB Output is correct
114 Correct 108 ms 22456 KB Output is correct
115 Correct 107 ms 23620 KB Output is correct
116 Correct 66 ms 20324 KB Output is correct
117 Correct 107 ms 23592 KB Output is correct
118 Correct 84 ms 21928 KB Output is correct
119 Correct 85 ms 21436 KB Output is correct
120 Correct 114 ms 23572 KB Output is correct
121 Correct 119 ms 23464 KB Output is correct
122 Correct 119 ms 23352 KB Output is correct
123 Correct 107 ms 23604 KB Output is correct
124 Correct 104 ms 23620 KB Output is correct
125 Correct 93 ms 22112 KB Output is correct
126 Correct 65 ms 22428 KB Output is correct
127 Correct 74 ms 21788 KB Output is correct
128 Correct 95 ms 23476 KB Output is correct
129 Correct 94 ms 23900 KB Output is correct
130 Correct 515 ms 50104 KB Output is correct
131 Correct 366 ms 40600 KB Output is correct
132 Correct 532 ms 50108 KB Output is correct
133 Correct 574 ms 49252 KB Output is correct
134 Correct 495 ms 45512 KB Output is correct
135 Correct 529 ms 50844 KB Output is correct
136 Correct 513 ms 49788 KB Output is correct
137 Correct 547 ms 49768 KB Output is correct
138 Correct 519 ms 49616 KB Output is correct
139 Correct 534 ms 50612 KB Output is correct
140 Correct 524 ms 49732 KB Output is correct
141 Correct 530 ms 50552 KB Output is correct
142 Correct 521 ms 50516 KB Output is correct
143 Correct 502 ms 50500 KB Output is correct
144 Correct 501 ms 50244 KB Output is correct
145 Correct 533 ms 50628 KB Output is correct
146 Correct 534 ms 50116 KB Output is correct
147 Correct 531 ms 50500 KB Output is correct
148 Correct 519 ms 50500 KB Output is correct
149 Correct 507 ms 50680 KB Output is correct
150 Correct 262 ms 46044 KB Output is correct
151 Correct 415 ms 50400 KB Output is correct
152 Correct 436 ms 50404 KB Output is correct
153 Correct 411 ms 51564 KB Output is correct