답안 #277676

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
277676 2020-08-21T06:46:58 Z 최은수(#5116) Interval Collection (CCO20_day2problem2) C++17
15 / 25
749 ms 51704 KB
#include<iostream>
#include<vector>
#include<set>
#include<algorithm>
#define ep emplace
#define eb emplace_back
#define fi first
#define se second
#define all(x) (x).begin(),(x).end()
using namespace std;
typedef long long ll;
typedef pair<int,int>pi;
typedef pair<ll,ll>pl;
const int inf=1e9+7;
const ll INF=1e18;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    int q;
    cin>>q;
    if(q<=12000)
    {
        auto cmp1=[](const pi&x,const pi&y){return x.fi<y.fi;};
        auto cmp2=[](const pi&x,const pi&y){return x.se<y.se;};
        vector<pi>v1,v2;
        while(q-->0)
        {
            char c;
            int l,r;
            cin>>c>>l>>r;
            if(c=='A')
                v1.insert(lower_bound(all(v1),pi(l,r),cmp1),pi(l,r)),
                v2.insert(lower_bound(all(v2),pi(l,r),cmp2),pi(l,r));
            else
                v1.erase(find(all(v1),pi(l,r))),v2.erase(find(all(v2),pi(l,r)));
            int ml=-inf,mr=inf;
            for(pi&t:v1)
                ml=max(ml,t.fi),mr=min(mr,t.se);
            int ans=inf;
            if(ml>=mr)
            {
                int ml2=-inf;
                int ind=0;
                for(pi&t:v1)
                {
                    while(ind<(int)v2.size()&&v2[ind].se<=t.fi)
                        ml2=max(ml2,v2[ind++].fi);
                    ans=min(ans,t.se-ml2);
                }
            }
            else
            {
                int ml2=-inf,mr2=inf;
                for(pi&t:v1)
                {
                    if(t.fi==ml)
                        mr2=min(mr2,t.se);
                    if(t.se==mr)
                        ml2=max(ml2,t.fi);
                }
                ans=mr2-ml2;
            }
            cout<<ans<<'\n';
        }
        cout.flush();
        return 0;
    }
    set<pi>st;
    multiset<int>ast;
    while(q-->0)
    {
        char c;
        int l,r;
        cin>>c>>l>>r;
        if(c=='A')
        {
            auto it=st.lower_bound(pi(l,r));
            if(it!=st.end())
            {
                int cr=it->se;
                ast.ep(cr-l);
                if(it!=st.begin())
                {
                    it--;
                    ast.erase(ast.find(cr-it->fi));
                    ast.ep(r-it->fi);
                }
            }
            else if(it!=st.begin())
            {
                it--;
                ast.ep(r-it->fi);
            }
            st.ep(l,r);
        }
        else
        {
            st.erase(pi(l,r));
            auto it=st.lower_bound(pi(l,r));
            if(it!=st.end())
            {
                int cr=it->se;
                ast.erase(ast.find(cr-l));
                if(it!=st.begin())
                {
                    it--;
                    ast.ep(cr-it->fi);
                    ast.erase(ast.find(r-it->fi));
                }
            }
            else if(it!=st.begin())
            {
                it--;
                ast.erase(ast.find(r-it->fi));
            }
        }
        if((int)st.size()==1)
            cout<<(st.begin()->se-st.begin()->fi)<<'\n';        
        else
            cout<<*ast.begin()<<'\n';
    }
    cout.flush();
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 384 KB Output is correct
2 Correct 1 ms 384 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Correct 1 ms 384 KB Output is correct
5 Correct 1 ms 384 KB Output is correct
6 Correct 1 ms 384 KB Output is correct
7 Correct 1 ms 384 KB Output is correct
8 Correct 1 ms 384 KB Output is correct
9 Correct 1 ms 384 KB Output is correct
10 Correct 1 ms 384 KB Output is correct
11 Correct 1 ms 384 KB Output is correct
12 Correct 1 ms 396 KB Output is correct
13 Correct 1 ms 384 KB Output is correct
14 Correct 2 ms 384 KB Output is correct
15 Correct 2 ms 384 KB Output is correct
16 Correct 2 ms 412 KB Output is correct
17 Correct 1 ms 384 KB Output is correct
18 Correct 1 ms 384 KB Output is correct
19 Correct 1 ms 384 KB Output is correct
20 Correct 1 ms 384 KB Output is correct
21 Correct 1 ms 384 KB Output is correct
22 Correct 1 ms 384 KB Output is correct
23 Correct 1 ms 384 KB Output is correct
24 Correct 1 ms 384 KB Output is correct
25 Correct 2 ms 384 KB Output is correct
26 Correct 2 ms 384 KB Output is correct
27 Correct 1 ms 384 KB Output is correct
28 Correct 1 ms 384 KB Output is correct
29 Correct 3 ms 384 KB Output is correct
30 Correct 2 ms 384 KB Output is correct
31 Correct 1 ms 384 KB Output is correct
32 Correct 2 ms 384 KB Output is correct
33 Correct 1 ms 384 KB Output is correct
34 Correct 1 ms 384 KB Output is correct
35 Correct 1 ms 384 KB Output is correct
36 Correct 1 ms 384 KB Output is correct
37 Correct 1 ms 384 KB Output is correct
38 Correct 1 ms 384 KB Output is correct
39 Correct 2 ms 384 KB Output is correct
40 Correct 1 ms 384 KB Output is correct
41 Correct 2 ms 384 KB Output is correct
42 Correct 1 ms 384 KB Output is correct
43 Correct 1 ms 384 KB Output is correct
44 Correct 1 ms 384 KB Output is correct
45 Correct 1 ms 384 KB Output is correct
46 Correct 1 ms 384 KB Output is correct
47 Correct 1 ms 384 KB Output is correct
48 Correct 1 ms 384 KB Output is correct
49 Correct 1 ms 384 KB Output is correct
50 Correct 1 ms 384 KB Output is correct
51 Correct 1 ms 384 KB Output is correct
52 Correct 2 ms 384 KB Output is correct
53 Correct 1 ms 384 KB Output is correct
54 Correct 1 ms 384 KB Output is correct
55 Correct 1 ms 384 KB Output is correct
56 Correct 1 ms 384 KB Output is correct
57 Correct 2 ms 384 KB Output is correct
58 Correct 1 ms 512 KB Output is correct
59 Correct 1 ms 384 KB Output is correct
60 Correct 1 ms 384 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 384 KB Output is correct
2 Correct 1 ms 384 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Correct 1 ms 384 KB Output is correct
5 Correct 1 ms 384 KB Output is correct
6 Correct 1 ms 384 KB Output is correct
7 Correct 1 ms 384 KB Output is correct
8 Correct 1 ms 384 KB Output is correct
9 Correct 1 ms 384 KB Output is correct
10 Correct 1 ms 384 KB Output is correct
11 Correct 1 ms 384 KB Output is correct
12 Correct 1 ms 396 KB Output is correct
13 Correct 1 ms 384 KB Output is correct
14 Correct 2 ms 384 KB Output is correct
15 Correct 2 ms 384 KB Output is correct
16 Correct 2 ms 412 KB Output is correct
17 Correct 1 ms 384 KB Output is correct
18 Correct 1 ms 384 KB Output is correct
19 Correct 1 ms 384 KB Output is correct
20 Correct 1 ms 384 KB Output is correct
21 Correct 1 ms 384 KB Output is correct
22 Correct 1 ms 384 KB Output is correct
23 Correct 1 ms 384 KB Output is correct
24 Correct 1 ms 384 KB Output is correct
25 Correct 2 ms 384 KB Output is correct
26 Correct 2 ms 384 KB Output is correct
27 Correct 1 ms 384 KB Output is correct
28 Correct 1 ms 384 KB Output is correct
29 Correct 3 ms 384 KB Output is correct
30 Correct 2 ms 384 KB Output is correct
31 Correct 1 ms 384 KB Output is correct
32 Correct 2 ms 384 KB Output is correct
33 Correct 1 ms 384 KB Output is correct
34 Correct 1 ms 384 KB Output is correct
35 Correct 1 ms 384 KB Output is correct
36 Correct 1 ms 384 KB Output is correct
37 Correct 1 ms 384 KB Output is correct
38 Correct 1 ms 384 KB Output is correct
39 Correct 2 ms 384 KB Output is correct
40 Correct 1 ms 384 KB Output is correct
41 Correct 2 ms 384 KB Output is correct
42 Correct 1 ms 384 KB Output is correct
43 Correct 1 ms 384 KB Output is correct
44 Correct 1 ms 384 KB Output is correct
45 Correct 1 ms 384 KB Output is correct
46 Correct 1 ms 384 KB Output is correct
47 Correct 1 ms 384 KB Output is correct
48 Correct 1 ms 384 KB Output is correct
49 Correct 1 ms 384 KB Output is correct
50 Correct 1 ms 384 KB Output is correct
51 Correct 1 ms 384 KB Output is correct
52 Correct 2 ms 384 KB Output is correct
53 Correct 1 ms 384 KB Output is correct
54 Correct 1 ms 384 KB Output is correct
55 Correct 1 ms 384 KB Output is correct
56 Correct 1 ms 384 KB Output is correct
57 Correct 2 ms 384 KB Output is correct
58 Correct 1 ms 512 KB Output is correct
59 Correct 1 ms 384 KB Output is correct
60 Correct 1 ms 384 KB Output is correct
61 Correct 1 ms 384 KB Output is correct
62 Correct 1 ms 384 KB Output is correct
63 Correct 1 ms 384 KB Output is correct
64 Correct 374 ms 760 KB Output is correct
65 Correct 96 ms 684 KB Output is correct
66 Correct 19 ms 640 KB Output is correct
67 Correct 6 ms 640 KB Output is correct
68 Correct 392 ms 888 KB Output is correct
69 Correct 97 ms 636 KB Output is correct
70 Correct 27 ms 604 KB Output is correct
71 Correct 12 ms 640 KB Output is correct
72 Correct 477 ms 1100 KB Output is correct
73 Correct 342 ms 760 KB Output is correct
74 Correct 350 ms 960 KB Output is correct
75 Correct 284 ms 772 KB Output is correct
76 Correct 503 ms 1016 KB Output is correct
77 Correct 493 ms 1144 KB Output is correct
78 Correct 499 ms 1064 KB Output is correct
79 Correct 527 ms 944 KB Output is correct
80 Correct 406 ms 760 KB Output is correct
81 Correct 105 ms 640 KB Output is correct
82 Correct 21 ms 640 KB Output is correct
83 Correct 6 ms 640 KB Output is correct
84 Correct 424 ms 996 KB Output is correct
85 Correct 103 ms 632 KB Output is correct
86 Correct 23 ms 640 KB Output is correct
87 Correct 12 ms 640 KB Output is correct
88 Correct 482 ms 1016 KB Output is correct
89 Correct 414 ms 888 KB Output is correct
90 Correct 316 ms 888 KB Output is correct
91 Correct 315 ms 932 KB Output is correct
92 Correct 533 ms 1012 KB Output is correct
93 Correct 526 ms 1088 KB Output is correct
94 Correct 529 ms 888 KB Output is correct
95 Correct 536 ms 1016 KB Output is correct
96 Correct 5 ms 640 KB Output is correct
97 Correct 5 ms 640 KB Output is correct
98 Correct 5 ms 640 KB Output is correct
99 Correct 5 ms 640 KB Output is correct
100 Correct 13 ms 640 KB Output is correct
101 Correct 8 ms 640 KB Output is correct
102 Correct 12 ms 640 KB Output is correct
103 Correct 5 ms 640 KB Output is correct
104 Correct 278 ms 760 KB Output is correct
105 Correct 53 ms 640 KB Output is correct
106 Correct 14 ms 640 KB Output is correct
107 Correct 6 ms 640 KB Output is correct
108 Correct 255 ms 760 KB Output is correct
109 Correct 52 ms 640 KB Output is correct
110 Correct 12 ms 640 KB Output is correct
111 Correct 5 ms 640 KB Output is correct
112 Correct 252 ms 888 KB Output is correct
113 Correct 269 ms 760 KB Output is correct
114 Correct 229 ms 760 KB Output is correct
115 Correct 274 ms 760 KB Output is correct
116 Correct 225 ms 760 KB Output is correct
117 Correct 268 ms 772 KB Output is correct
118 Correct 234 ms 760 KB Output is correct
119 Correct 285 ms 888 KB Output is correct
120 Correct 226 ms 760 KB Output is correct
121 Correct 280 ms 764 KB Output is correct
122 Correct 252 ms 888 KB Output is correct
123 Correct 437 ms 1160 KB Output is correct
124 Correct 76 ms 512 KB Output is correct
125 Correct 35 ms 512 KB Output is correct
126 Correct 29 ms 544 KB Output is correct
127 Correct 118 ms 640 KB Output is correct
128 Correct 41 ms 512 KB Output is correct
129 Correct 29 ms 512 KB Output is correct
130 Correct 118 ms 632 KB Output is correct
131 Correct 36 ms 632 KB Output is correct
132 Correct 27 ms 512 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 384 KB Output is correct
2 Correct 1 ms 384 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Correct 1 ms 384 KB Output is correct
5 Correct 1 ms 384 KB Output is correct
6 Correct 1 ms 384 KB Output is correct
7 Correct 1 ms 384 KB Output is correct
8 Correct 1 ms 384 KB Output is correct
9 Correct 1 ms 384 KB Output is correct
10 Correct 1 ms 384 KB Output is correct
11 Correct 1 ms 384 KB Output is correct
12 Correct 1 ms 396 KB Output is correct
13 Correct 1 ms 384 KB Output is correct
14 Correct 2 ms 384 KB Output is correct
15 Correct 2 ms 384 KB Output is correct
16 Correct 2 ms 412 KB Output is correct
17 Correct 1 ms 384 KB Output is correct
18 Correct 1 ms 384 KB Output is correct
19 Correct 1 ms 384 KB Output is correct
20 Correct 1 ms 384 KB Output is correct
21 Correct 1 ms 384 KB Output is correct
22 Correct 1 ms 384 KB Output is correct
23 Correct 1 ms 384 KB Output is correct
24 Correct 1 ms 384 KB Output is correct
25 Correct 2 ms 384 KB Output is correct
26 Correct 2 ms 384 KB Output is correct
27 Correct 1 ms 384 KB Output is correct
28 Correct 1 ms 384 KB Output is correct
29 Correct 3 ms 384 KB Output is correct
30 Correct 2 ms 384 KB Output is correct
31 Correct 1 ms 384 KB Output is correct
32 Correct 2 ms 384 KB Output is correct
33 Correct 1 ms 384 KB Output is correct
34 Correct 1 ms 384 KB Output is correct
35 Correct 1 ms 384 KB Output is correct
36 Correct 1 ms 384 KB Output is correct
37 Correct 1 ms 384 KB Output is correct
38 Correct 1 ms 384 KB Output is correct
39 Correct 2 ms 384 KB Output is correct
40 Correct 1 ms 384 KB Output is correct
41 Correct 2 ms 384 KB Output is correct
42 Correct 1 ms 384 KB Output is correct
43 Correct 1 ms 384 KB Output is correct
44 Correct 1 ms 384 KB Output is correct
45 Correct 1 ms 384 KB Output is correct
46 Correct 1 ms 384 KB Output is correct
47 Correct 1 ms 384 KB Output is correct
48 Correct 1 ms 384 KB Output is correct
49 Correct 1 ms 384 KB Output is correct
50 Correct 1 ms 384 KB Output is correct
51 Correct 1 ms 384 KB Output is correct
52 Correct 2 ms 384 KB Output is correct
53 Correct 1 ms 384 KB Output is correct
54 Correct 1 ms 384 KB Output is correct
55 Correct 1 ms 384 KB Output is correct
56 Correct 1 ms 384 KB Output is correct
57 Correct 2 ms 384 KB Output is correct
58 Correct 1 ms 512 KB Output is correct
59 Correct 1 ms 384 KB Output is correct
60 Correct 1 ms 384 KB Output is correct
61 Correct 1 ms 384 KB Output is correct
62 Correct 1 ms 384 KB Output is correct
63 Correct 1 ms 384 KB Output is correct
64 Correct 374 ms 760 KB Output is correct
65 Correct 96 ms 684 KB Output is correct
66 Correct 19 ms 640 KB Output is correct
67 Correct 6 ms 640 KB Output is correct
68 Correct 392 ms 888 KB Output is correct
69 Correct 97 ms 636 KB Output is correct
70 Correct 27 ms 604 KB Output is correct
71 Correct 12 ms 640 KB Output is correct
72 Correct 477 ms 1100 KB Output is correct
73 Correct 342 ms 760 KB Output is correct
74 Correct 350 ms 960 KB Output is correct
75 Correct 284 ms 772 KB Output is correct
76 Correct 503 ms 1016 KB Output is correct
77 Correct 493 ms 1144 KB Output is correct
78 Correct 499 ms 1064 KB Output is correct
79 Correct 527 ms 944 KB Output is correct
80 Correct 406 ms 760 KB Output is correct
81 Correct 105 ms 640 KB Output is correct
82 Correct 21 ms 640 KB Output is correct
83 Correct 6 ms 640 KB Output is correct
84 Correct 424 ms 996 KB Output is correct
85 Correct 103 ms 632 KB Output is correct
86 Correct 23 ms 640 KB Output is correct
87 Correct 12 ms 640 KB Output is correct
88 Correct 482 ms 1016 KB Output is correct
89 Correct 414 ms 888 KB Output is correct
90 Correct 316 ms 888 KB Output is correct
91 Correct 315 ms 932 KB Output is correct
92 Correct 533 ms 1012 KB Output is correct
93 Correct 526 ms 1088 KB Output is correct
94 Correct 529 ms 888 KB Output is correct
95 Correct 536 ms 1016 KB Output is correct
96 Correct 5 ms 640 KB Output is correct
97 Correct 5 ms 640 KB Output is correct
98 Correct 5 ms 640 KB Output is correct
99 Correct 5 ms 640 KB Output is correct
100 Correct 13 ms 640 KB Output is correct
101 Correct 8 ms 640 KB Output is correct
102 Correct 12 ms 640 KB Output is correct
103 Correct 5 ms 640 KB Output is correct
104 Correct 278 ms 760 KB Output is correct
105 Correct 53 ms 640 KB Output is correct
106 Correct 14 ms 640 KB Output is correct
107 Correct 6 ms 640 KB Output is correct
108 Correct 255 ms 760 KB Output is correct
109 Correct 52 ms 640 KB Output is correct
110 Correct 12 ms 640 KB Output is correct
111 Correct 5 ms 640 KB Output is correct
112 Correct 252 ms 888 KB Output is correct
113 Correct 269 ms 760 KB Output is correct
114 Correct 229 ms 760 KB Output is correct
115 Correct 274 ms 760 KB Output is correct
116 Correct 225 ms 760 KB Output is correct
117 Correct 268 ms 772 KB Output is correct
118 Correct 234 ms 760 KB Output is correct
119 Correct 285 ms 888 KB Output is correct
120 Correct 226 ms 760 KB Output is correct
121 Correct 280 ms 764 KB Output is correct
122 Correct 252 ms 888 KB Output is correct
123 Correct 437 ms 1160 KB Output is correct
124 Correct 76 ms 512 KB Output is correct
125 Correct 35 ms 512 KB Output is correct
126 Correct 29 ms 544 KB Output is correct
127 Correct 118 ms 640 KB Output is correct
128 Correct 41 ms 512 KB Output is correct
129 Correct 29 ms 512 KB Output is correct
130 Correct 118 ms 632 KB Output is correct
131 Correct 36 ms 632 KB Output is correct
132 Correct 27 ms 512 KB Output is correct
133 Incorrect 77 ms 3584 KB Output isn't correct
134 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 191 ms 21240 KB Output is correct
2 Correct 186 ms 21112 KB Output is correct
3 Correct 439 ms 41464 KB Output is correct
4 Correct 390 ms 41492 KB Output is correct
5 Correct 479 ms 51576 KB Output is correct
6 Correct 485 ms 51704 KB Output is correct
7 Correct 691 ms 5880 KB Output is correct
8 Correct 512 ms 4472 KB Output is correct
9 Correct 512 ms 4076 KB Output is correct
10 Correct 724 ms 7832 KB Output is correct
11 Correct 509 ms 4456 KB Output is correct
12 Correct 481 ms 4088 KB Output is correct
13 Correct 749 ms 8440 KB Output is correct
14 Correct 517 ms 4440 KB Output is correct
15 Correct 506 ms 4088 KB Output is correct
16 Correct 341 ms 5188 KB Output is correct
17 Correct 399 ms 5112 KB Output is correct
18 Correct 350 ms 5112 KB Output is correct
19 Correct 404 ms 5112 KB Output is correct
20 Correct 358 ms 5112 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 384 KB Output is correct
2 Correct 1 ms 384 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Correct 1 ms 384 KB Output is correct
5 Correct 1 ms 384 KB Output is correct
6 Correct 1 ms 384 KB Output is correct
7 Correct 1 ms 384 KB Output is correct
8 Correct 1 ms 384 KB Output is correct
9 Correct 1 ms 384 KB Output is correct
10 Correct 1 ms 384 KB Output is correct
11 Correct 1 ms 384 KB Output is correct
12 Correct 1 ms 396 KB Output is correct
13 Correct 1 ms 384 KB Output is correct
14 Correct 2 ms 384 KB Output is correct
15 Correct 2 ms 384 KB Output is correct
16 Correct 2 ms 412 KB Output is correct
17 Correct 1 ms 384 KB Output is correct
18 Correct 1 ms 384 KB Output is correct
19 Correct 1 ms 384 KB Output is correct
20 Correct 1 ms 384 KB Output is correct
21 Correct 1 ms 384 KB Output is correct
22 Correct 1 ms 384 KB Output is correct
23 Correct 1 ms 384 KB Output is correct
24 Correct 1 ms 384 KB Output is correct
25 Correct 2 ms 384 KB Output is correct
26 Correct 2 ms 384 KB Output is correct
27 Correct 1 ms 384 KB Output is correct
28 Correct 1 ms 384 KB Output is correct
29 Correct 3 ms 384 KB Output is correct
30 Correct 2 ms 384 KB Output is correct
31 Correct 1 ms 384 KB Output is correct
32 Correct 2 ms 384 KB Output is correct
33 Correct 1 ms 384 KB Output is correct
34 Correct 1 ms 384 KB Output is correct
35 Correct 1 ms 384 KB Output is correct
36 Correct 1 ms 384 KB Output is correct
37 Correct 1 ms 384 KB Output is correct
38 Correct 1 ms 384 KB Output is correct
39 Correct 2 ms 384 KB Output is correct
40 Correct 1 ms 384 KB Output is correct
41 Correct 2 ms 384 KB Output is correct
42 Correct 1 ms 384 KB Output is correct
43 Correct 1 ms 384 KB Output is correct
44 Correct 1 ms 384 KB Output is correct
45 Correct 1 ms 384 KB Output is correct
46 Correct 1 ms 384 KB Output is correct
47 Correct 1 ms 384 KB Output is correct
48 Correct 1 ms 384 KB Output is correct
49 Correct 1 ms 384 KB Output is correct
50 Correct 1 ms 384 KB Output is correct
51 Correct 1 ms 384 KB Output is correct
52 Correct 2 ms 384 KB Output is correct
53 Correct 1 ms 384 KB Output is correct
54 Correct 1 ms 384 KB Output is correct
55 Correct 1 ms 384 KB Output is correct
56 Correct 1 ms 384 KB Output is correct
57 Correct 2 ms 384 KB Output is correct
58 Correct 1 ms 512 KB Output is correct
59 Correct 1 ms 384 KB Output is correct
60 Correct 1 ms 384 KB Output is correct
61 Correct 1 ms 384 KB Output is correct
62 Correct 1 ms 384 KB Output is correct
63 Correct 1 ms 384 KB Output is correct
64 Correct 374 ms 760 KB Output is correct
65 Correct 96 ms 684 KB Output is correct
66 Correct 19 ms 640 KB Output is correct
67 Correct 6 ms 640 KB Output is correct
68 Correct 392 ms 888 KB Output is correct
69 Correct 97 ms 636 KB Output is correct
70 Correct 27 ms 604 KB Output is correct
71 Correct 12 ms 640 KB Output is correct
72 Correct 477 ms 1100 KB Output is correct
73 Correct 342 ms 760 KB Output is correct
74 Correct 350 ms 960 KB Output is correct
75 Correct 284 ms 772 KB Output is correct
76 Correct 503 ms 1016 KB Output is correct
77 Correct 493 ms 1144 KB Output is correct
78 Correct 499 ms 1064 KB Output is correct
79 Correct 527 ms 944 KB Output is correct
80 Correct 406 ms 760 KB Output is correct
81 Correct 105 ms 640 KB Output is correct
82 Correct 21 ms 640 KB Output is correct
83 Correct 6 ms 640 KB Output is correct
84 Correct 424 ms 996 KB Output is correct
85 Correct 103 ms 632 KB Output is correct
86 Correct 23 ms 640 KB Output is correct
87 Correct 12 ms 640 KB Output is correct
88 Correct 482 ms 1016 KB Output is correct
89 Correct 414 ms 888 KB Output is correct
90 Correct 316 ms 888 KB Output is correct
91 Correct 315 ms 932 KB Output is correct
92 Correct 533 ms 1012 KB Output is correct
93 Correct 526 ms 1088 KB Output is correct
94 Correct 529 ms 888 KB Output is correct
95 Correct 536 ms 1016 KB Output is correct
96 Correct 5 ms 640 KB Output is correct
97 Correct 5 ms 640 KB Output is correct
98 Correct 5 ms 640 KB Output is correct
99 Correct 5 ms 640 KB Output is correct
100 Correct 13 ms 640 KB Output is correct
101 Correct 8 ms 640 KB Output is correct
102 Correct 12 ms 640 KB Output is correct
103 Correct 5 ms 640 KB Output is correct
104 Correct 278 ms 760 KB Output is correct
105 Correct 53 ms 640 KB Output is correct
106 Correct 14 ms 640 KB Output is correct
107 Correct 6 ms 640 KB Output is correct
108 Correct 255 ms 760 KB Output is correct
109 Correct 52 ms 640 KB Output is correct
110 Correct 12 ms 640 KB Output is correct
111 Correct 5 ms 640 KB Output is correct
112 Correct 252 ms 888 KB Output is correct
113 Correct 269 ms 760 KB Output is correct
114 Correct 229 ms 760 KB Output is correct
115 Correct 274 ms 760 KB Output is correct
116 Correct 225 ms 760 KB Output is correct
117 Correct 268 ms 772 KB Output is correct
118 Correct 234 ms 760 KB Output is correct
119 Correct 285 ms 888 KB Output is correct
120 Correct 226 ms 760 KB Output is correct
121 Correct 280 ms 764 KB Output is correct
122 Correct 252 ms 888 KB Output is correct
123 Correct 437 ms 1160 KB Output is correct
124 Correct 76 ms 512 KB Output is correct
125 Correct 35 ms 512 KB Output is correct
126 Correct 29 ms 544 KB Output is correct
127 Correct 118 ms 640 KB Output is correct
128 Correct 41 ms 512 KB Output is correct
129 Correct 29 ms 512 KB Output is correct
130 Correct 118 ms 632 KB Output is correct
131 Correct 36 ms 632 KB Output is correct
132 Correct 27 ms 512 KB Output is correct
133 Incorrect 77 ms 3584 KB Output isn't correct
134 Halted 0 ms 0 KB -