답안 #986283

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
986283 2024-05-20T08:40:20 Z alexdd Interval Collection (CCO20_day2problem2) C++17
25 / 25
2897 ms 243092 KB
#include<bits/stdc++.h>
using namespace std;
const int INF = 1e8;
const int maxv = 1000010;
struct node
{
    int rez;
    int tole,tori;
};
node combine(node x, node y)
{
    node aux;
    aux.rez = min(min(x.rez,y.rez),x.tole+y.tori);
    aux.tori = min(y.tori, x.tori);
    aux.tole = min(x.tole, y.tole);
    return aux;
}
node aint[2100000];
void build(int nod, int st, int dr)
{
    aint[nod].rez = aint[nod].tole = aint[nod].tori = INF;
    if(st==dr)
        return;
    int mij=(st+dr)/2;
    build(nod*2,st,mij);
    build(nod*2+1,mij+1,dr);
}
void upd(int nod, int st, int dr, int poz, int tip, int newv)
{
    if(st==dr)
    {
        if(tip==0)
        {
            aint[nod].tori = newv;
        }
        else
        {
            aint[nod].tole = -newv;
        }
        return;
    }
    int mij=(st+dr)/2;
    if(poz<=mij) upd(nod*2,st,mij,poz,tip,newv);
    else upd(nod*2+1,mij+1,dr,poz,tip,newv);
    aint[nod] = combine(aint[nod*2], aint[nod*2+1]);
}

set<pair<int,int>> sle[1000005],sri[1000005];
set<pair<int,int>> caple,capri,slun;
signed main()
{
    ios_base::sync_with_stdio(0);cin.tie(0);
    int t;
    cin>>t;
    char tip;
    int le,ri;
    build(1,0,maxv);
    while(t--)
    {
        cin>>tip>>le>>ri;
        le++;ri++;
        upd(1,0,maxv,ri-1,1,-INF);
        upd(1,0,maxv,le,0,INF);
        if(tip=='A')
        {
            sle[ri].insert({le,t});
            sri[le].insert({ri,t});
            caple.insert({le,t});
            capri.insert({ri,t});
            slun.insert({ri-le,t});
        }
        else
        {
            sle[ri].erase(sle[ri].lower_bound({le,0}));
            sri[le].erase(sri[le].lower_bound({ri,0}));
            caple.erase(caple.lower_bound({le,0}));
            capri.erase(capri.lower_bound({ri,0}));
            slun.erase(slun.lower_bound({ri-le,0}));
        }
        if(!sle[ri].empty()) upd(1,0,maxv,ri-1,1,(*prev(sle[ri].end())).first);
        if(!sri[le].empty()) upd(1,0,maxv,le,0,(*sri[le].begin()).first);

        int maxle = (*prev(caple.end())).first;
        int minri = (*capri.begin()).first;

        if(maxle>=minri)
        {
            cout<<aint[1].rez<<"\n";
        }
        else
        {
            int cv=0;
            cv += (*sri[maxle].begin()).first;
            cv -= (*prev(sle[minri].end())).first;
            cout<<cv<<"\n";
        }
    }
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 55 ms 118868 KB Output is correct
2 Correct 55 ms 118864 KB Output is correct
3 Correct 27 ms 118876 KB Output is correct
4 Correct 40 ms 118868 KB Output is correct
5 Correct 39 ms 118872 KB Output is correct
6 Correct 39 ms 118876 KB Output is correct
7 Correct 37 ms 118976 KB Output is correct
8 Correct 38 ms 118876 KB Output is correct
9 Correct 28 ms 119128 KB Output is correct
10 Correct 41 ms 118868 KB Output is correct
11 Correct 44 ms 119120 KB Output is correct
12 Correct 39 ms 119092 KB Output is correct
13 Correct 37 ms 119128 KB Output is correct
14 Correct 37 ms 119120 KB Output is correct
15 Correct 43 ms 119120 KB Output is correct
16 Correct 46 ms 119124 KB Output is correct
17 Correct 39 ms 118868 KB Output is correct
18 Correct 38 ms 118868 KB Output is correct
19 Correct 39 ms 118868 KB Output is correct
20 Correct 37 ms 118816 KB Output is correct
21 Correct 37 ms 118872 KB Output is correct
22 Correct 37 ms 119000 KB Output is correct
23 Correct 37 ms 118924 KB Output is correct
24 Correct 37 ms 118972 KB Output is correct
25 Correct 29 ms 119000 KB Output is correct
26 Correct 40 ms 119000 KB Output is correct
27 Correct 39 ms 118864 KB Output is correct
28 Correct 44 ms 118864 KB Output is correct
29 Correct 43 ms 119120 KB Output is correct
30 Correct 39 ms 119132 KB Output is correct
31 Correct 39 ms 118868 KB Output is correct
32 Correct 41 ms 119120 KB Output is correct
33 Correct 38 ms 118876 KB Output is correct
34 Correct 40 ms 118868 KB Output is correct
35 Correct 38 ms 118992 KB Output is correct
36 Correct 27 ms 118836 KB Output is correct
37 Correct 41 ms 118932 KB Output is correct
38 Correct 46 ms 119008 KB Output is correct
39 Correct 39 ms 118872 KB Output is correct
40 Correct 38 ms 119004 KB Output is correct
41 Correct 39 ms 118864 KB Output is correct
42 Correct 39 ms 118896 KB Output is correct
43 Correct 39 ms 118868 KB Output is correct
44 Correct 28 ms 118864 KB Output is correct
45 Correct 40 ms 118980 KB Output is correct
46 Correct 40 ms 118900 KB Output is correct
47 Correct 48 ms 119032 KB Output is correct
48 Correct 38 ms 119032 KB Output is correct
49 Correct 38 ms 118876 KB Output is correct
50 Correct 43 ms 118868 KB Output is correct
51 Correct 30 ms 118864 KB Output is correct
52 Correct 55 ms 119000 KB Output is correct
53 Correct 62 ms 118864 KB Output is correct
54 Correct 52 ms 118884 KB Output is correct
55 Correct 61 ms 119060 KB Output is correct
56 Correct 52 ms 118864 KB Output is correct
57 Correct 27 ms 118816 KB Output is correct
58 Correct 44 ms 119028 KB Output is correct
59 Correct 40 ms 119072 KB Output is correct
60 Correct 41 ms 119104 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 55 ms 118868 KB Output is correct
2 Correct 55 ms 118864 KB Output is correct
3 Correct 27 ms 118876 KB Output is correct
4 Correct 40 ms 118868 KB Output is correct
5 Correct 39 ms 118872 KB Output is correct
6 Correct 39 ms 118876 KB Output is correct
7 Correct 37 ms 118976 KB Output is correct
8 Correct 38 ms 118876 KB Output is correct
9 Correct 28 ms 119128 KB Output is correct
10 Correct 41 ms 118868 KB Output is correct
11 Correct 44 ms 119120 KB Output is correct
12 Correct 39 ms 119092 KB Output is correct
13 Correct 37 ms 119128 KB Output is correct
14 Correct 37 ms 119120 KB Output is correct
15 Correct 43 ms 119120 KB Output is correct
16 Correct 46 ms 119124 KB Output is correct
17 Correct 39 ms 118868 KB Output is correct
18 Correct 38 ms 118868 KB Output is correct
19 Correct 39 ms 118868 KB Output is correct
20 Correct 37 ms 118816 KB Output is correct
21 Correct 37 ms 118872 KB Output is correct
22 Correct 37 ms 119000 KB Output is correct
23 Correct 37 ms 118924 KB Output is correct
24 Correct 37 ms 118972 KB Output is correct
25 Correct 29 ms 119000 KB Output is correct
26 Correct 40 ms 119000 KB Output is correct
27 Correct 39 ms 118864 KB Output is correct
28 Correct 44 ms 118864 KB Output is correct
29 Correct 43 ms 119120 KB Output is correct
30 Correct 39 ms 119132 KB Output is correct
31 Correct 39 ms 118868 KB Output is correct
32 Correct 41 ms 119120 KB Output is correct
33 Correct 38 ms 118876 KB Output is correct
34 Correct 40 ms 118868 KB Output is correct
35 Correct 38 ms 118992 KB Output is correct
36 Correct 27 ms 118836 KB Output is correct
37 Correct 41 ms 118932 KB Output is correct
38 Correct 46 ms 119008 KB Output is correct
39 Correct 39 ms 118872 KB Output is correct
40 Correct 38 ms 119004 KB Output is correct
41 Correct 39 ms 118864 KB Output is correct
42 Correct 39 ms 118896 KB Output is correct
43 Correct 39 ms 118868 KB Output is correct
44 Correct 28 ms 118864 KB Output is correct
45 Correct 40 ms 118980 KB Output is correct
46 Correct 40 ms 118900 KB Output is correct
47 Correct 48 ms 119032 KB Output is correct
48 Correct 38 ms 119032 KB Output is correct
49 Correct 38 ms 118876 KB Output is correct
50 Correct 43 ms 118868 KB Output is correct
51 Correct 30 ms 118864 KB Output is correct
52 Correct 55 ms 119000 KB Output is correct
53 Correct 62 ms 118864 KB Output is correct
54 Correct 52 ms 118884 KB Output is correct
55 Correct 61 ms 119060 KB Output is correct
56 Correct 52 ms 118864 KB Output is correct
57 Correct 27 ms 118816 KB Output is correct
58 Correct 44 ms 119028 KB Output is correct
59 Correct 40 ms 119072 KB Output is correct
60 Correct 41 ms 119104 KB Output is correct
61 Correct 38 ms 118836 KB Output is correct
62 Correct 38 ms 118776 KB Output is correct
63 Correct 38 ms 118872 KB Output is correct
64 Correct 69 ms 120500 KB Output is correct
65 Correct 60 ms 119472 KB Output is correct
66 Correct 70 ms 119272 KB Output is correct
67 Correct 51 ms 119124 KB Output is correct
68 Correct 70 ms 120620 KB Output is correct
69 Correct 60 ms 119380 KB Output is correct
70 Correct 56 ms 119124 KB Output is correct
71 Correct 51 ms 119132 KB Output is correct
72 Correct 74 ms 121304 KB Output is correct
73 Correct 67 ms 120884 KB Output is correct
74 Correct 68 ms 120912 KB Output is correct
75 Correct 73 ms 120912 KB Output is correct
76 Correct 68 ms 121940 KB Output is correct
77 Correct 68 ms 121988 KB Output is correct
78 Correct 66 ms 121936 KB Output is correct
79 Correct 88 ms 121940 KB Output is correct
80 Correct 66 ms 120660 KB Output is correct
81 Correct 56 ms 119380 KB Output is correct
82 Correct 61 ms 119308 KB Output is correct
83 Correct 55 ms 119120 KB Output is correct
84 Correct 61 ms 120656 KB Output is correct
85 Correct 55 ms 119560 KB Output is correct
86 Correct 68 ms 119204 KB Output is correct
87 Correct 52 ms 119132 KB Output is correct
88 Correct 70 ms 121428 KB Output is correct
89 Correct 83 ms 120916 KB Output is correct
90 Correct 63 ms 120880 KB Output is correct
91 Correct 62 ms 120836 KB Output is correct
92 Correct 68 ms 121940 KB Output is correct
93 Correct 68 ms 121940 KB Output is correct
94 Correct 60 ms 121980 KB Output is correct
95 Correct 68 ms 121816 KB Output is correct
96 Correct 49 ms 119240 KB Output is correct
97 Correct 49 ms 119124 KB Output is correct
98 Correct 47 ms 119120 KB Output is correct
99 Correct 48 ms 119224 KB Output is correct
100 Correct 55 ms 119172 KB Output is correct
101 Correct 54 ms 119108 KB Output is correct
102 Correct 54 ms 119120 KB Output is correct
103 Correct 50 ms 119068 KB Output is correct
104 Correct 60 ms 120576 KB Output is correct
105 Correct 55 ms 119500 KB Output is correct
106 Correct 55 ms 119120 KB Output is correct
107 Correct 42 ms 119124 KB Output is correct
108 Correct 79 ms 120460 KB Output is correct
109 Correct 72 ms 119480 KB Output is correct
110 Correct 68 ms 119300 KB Output is correct
111 Correct 65 ms 119256 KB Output is correct
112 Correct 44 ms 120660 KB Output is correct
113 Correct 57 ms 120660 KB Output is correct
114 Correct 51 ms 120660 KB Output is correct
115 Correct 64 ms 120664 KB Output is correct
116 Correct 51 ms 120672 KB Output is correct
117 Correct 55 ms 120640 KB Output is correct
118 Correct 45 ms 120668 KB Output is correct
119 Correct 70 ms 120588 KB Output is correct
120 Correct 76 ms 120492 KB Output is correct
121 Correct 71 ms 120656 KB Output is correct
122 Correct 74 ms 121936 KB Output is correct
123 Correct 74 ms 121940 KB Output is correct
124 Correct 63 ms 119472 KB Output is correct
125 Correct 51 ms 119124 KB Output is correct
126 Correct 49 ms 119132 KB Output is correct
127 Correct 53 ms 119636 KB Output is correct
128 Correct 41 ms 119336 KB Output is correct
129 Correct 64 ms 119060 KB Output is correct
130 Correct 70 ms 119792 KB Output is correct
131 Correct 65 ms 119280 KB Output is correct
132 Correct 65 ms 119288 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 55 ms 118868 KB Output is correct
2 Correct 55 ms 118864 KB Output is correct
3 Correct 27 ms 118876 KB Output is correct
4 Correct 40 ms 118868 KB Output is correct
5 Correct 39 ms 118872 KB Output is correct
6 Correct 39 ms 118876 KB Output is correct
7 Correct 37 ms 118976 KB Output is correct
8 Correct 38 ms 118876 KB Output is correct
9 Correct 28 ms 119128 KB Output is correct
10 Correct 41 ms 118868 KB Output is correct
11 Correct 44 ms 119120 KB Output is correct
12 Correct 39 ms 119092 KB Output is correct
13 Correct 37 ms 119128 KB Output is correct
14 Correct 37 ms 119120 KB Output is correct
15 Correct 43 ms 119120 KB Output is correct
16 Correct 46 ms 119124 KB Output is correct
17 Correct 39 ms 118868 KB Output is correct
18 Correct 38 ms 118868 KB Output is correct
19 Correct 39 ms 118868 KB Output is correct
20 Correct 37 ms 118816 KB Output is correct
21 Correct 37 ms 118872 KB Output is correct
22 Correct 37 ms 119000 KB Output is correct
23 Correct 37 ms 118924 KB Output is correct
24 Correct 37 ms 118972 KB Output is correct
25 Correct 29 ms 119000 KB Output is correct
26 Correct 40 ms 119000 KB Output is correct
27 Correct 39 ms 118864 KB Output is correct
28 Correct 44 ms 118864 KB Output is correct
29 Correct 43 ms 119120 KB Output is correct
30 Correct 39 ms 119132 KB Output is correct
31 Correct 39 ms 118868 KB Output is correct
32 Correct 41 ms 119120 KB Output is correct
33 Correct 38 ms 118876 KB Output is correct
34 Correct 40 ms 118868 KB Output is correct
35 Correct 38 ms 118992 KB Output is correct
36 Correct 27 ms 118836 KB Output is correct
37 Correct 41 ms 118932 KB Output is correct
38 Correct 46 ms 119008 KB Output is correct
39 Correct 39 ms 118872 KB Output is correct
40 Correct 38 ms 119004 KB Output is correct
41 Correct 39 ms 118864 KB Output is correct
42 Correct 39 ms 118896 KB Output is correct
43 Correct 39 ms 118868 KB Output is correct
44 Correct 28 ms 118864 KB Output is correct
45 Correct 40 ms 118980 KB Output is correct
46 Correct 40 ms 118900 KB Output is correct
47 Correct 48 ms 119032 KB Output is correct
48 Correct 38 ms 119032 KB Output is correct
49 Correct 38 ms 118876 KB Output is correct
50 Correct 43 ms 118868 KB Output is correct
51 Correct 30 ms 118864 KB Output is correct
52 Correct 55 ms 119000 KB Output is correct
53 Correct 62 ms 118864 KB Output is correct
54 Correct 52 ms 118884 KB Output is correct
55 Correct 61 ms 119060 KB Output is correct
56 Correct 52 ms 118864 KB Output is correct
57 Correct 27 ms 118816 KB Output is correct
58 Correct 44 ms 119028 KB Output is correct
59 Correct 40 ms 119072 KB Output is correct
60 Correct 41 ms 119104 KB Output is correct
61 Correct 38 ms 118836 KB Output is correct
62 Correct 38 ms 118776 KB Output is correct
63 Correct 38 ms 118872 KB Output is correct
64 Correct 69 ms 120500 KB Output is correct
65 Correct 60 ms 119472 KB Output is correct
66 Correct 70 ms 119272 KB Output is correct
67 Correct 51 ms 119124 KB Output is correct
68 Correct 70 ms 120620 KB Output is correct
69 Correct 60 ms 119380 KB Output is correct
70 Correct 56 ms 119124 KB Output is correct
71 Correct 51 ms 119132 KB Output is correct
72 Correct 74 ms 121304 KB Output is correct
73 Correct 67 ms 120884 KB Output is correct
74 Correct 68 ms 120912 KB Output is correct
75 Correct 73 ms 120912 KB Output is correct
76 Correct 68 ms 121940 KB Output is correct
77 Correct 68 ms 121988 KB Output is correct
78 Correct 66 ms 121936 KB Output is correct
79 Correct 88 ms 121940 KB Output is correct
80 Correct 66 ms 120660 KB Output is correct
81 Correct 56 ms 119380 KB Output is correct
82 Correct 61 ms 119308 KB Output is correct
83 Correct 55 ms 119120 KB Output is correct
84 Correct 61 ms 120656 KB Output is correct
85 Correct 55 ms 119560 KB Output is correct
86 Correct 68 ms 119204 KB Output is correct
87 Correct 52 ms 119132 KB Output is correct
88 Correct 70 ms 121428 KB Output is correct
89 Correct 83 ms 120916 KB Output is correct
90 Correct 63 ms 120880 KB Output is correct
91 Correct 62 ms 120836 KB Output is correct
92 Correct 68 ms 121940 KB Output is correct
93 Correct 68 ms 121940 KB Output is correct
94 Correct 60 ms 121980 KB Output is correct
95 Correct 68 ms 121816 KB Output is correct
96 Correct 49 ms 119240 KB Output is correct
97 Correct 49 ms 119124 KB Output is correct
98 Correct 47 ms 119120 KB Output is correct
99 Correct 48 ms 119224 KB Output is correct
100 Correct 55 ms 119172 KB Output is correct
101 Correct 54 ms 119108 KB Output is correct
102 Correct 54 ms 119120 KB Output is correct
103 Correct 50 ms 119068 KB Output is correct
104 Correct 60 ms 120576 KB Output is correct
105 Correct 55 ms 119500 KB Output is correct
106 Correct 55 ms 119120 KB Output is correct
107 Correct 42 ms 119124 KB Output is correct
108 Correct 79 ms 120460 KB Output is correct
109 Correct 72 ms 119480 KB Output is correct
110 Correct 68 ms 119300 KB Output is correct
111 Correct 65 ms 119256 KB Output is correct
112 Correct 44 ms 120660 KB Output is correct
113 Correct 57 ms 120660 KB Output is correct
114 Correct 51 ms 120660 KB Output is correct
115 Correct 64 ms 120664 KB Output is correct
116 Correct 51 ms 120672 KB Output is correct
117 Correct 55 ms 120640 KB Output is correct
118 Correct 45 ms 120668 KB Output is correct
119 Correct 70 ms 120588 KB Output is correct
120 Correct 76 ms 120492 KB Output is correct
121 Correct 71 ms 120656 KB Output is correct
122 Correct 74 ms 121936 KB Output is correct
123 Correct 74 ms 121940 KB Output is correct
124 Correct 63 ms 119472 KB Output is correct
125 Correct 51 ms 119124 KB Output is correct
126 Correct 49 ms 119132 KB Output is correct
127 Correct 53 ms 119636 KB Output is correct
128 Correct 41 ms 119336 KB Output is correct
129 Correct 64 ms 119060 KB Output is correct
130 Correct 70 ms 119792 KB Output is correct
131 Correct 65 ms 119280 KB Output is correct
132 Correct 65 ms 119288 KB Output is correct
133 Correct 181 ms 125712 KB Output is correct
134 Correct 122 ms 121156 KB Output is correct
135 Correct 129 ms 120148 KB Output is correct
136 Correct 110 ms 120036 KB Output is correct
137 Correct 193 ms 126148 KB Output is correct
138 Correct 134 ms 121088 KB Output is correct
139 Correct 110 ms 120212 KB Output is correct
140 Correct 106 ms 120132 KB Output is correct
141 Correct 195 ms 129424 KB Output is correct
142 Correct 161 ms 127420 KB Output is correct
143 Correct 156 ms 127048 KB Output is correct
144 Correct 171 ms 126948 KB Output is correct
145 Correct 183 ms 131668 KB Output is correct
146 Correct 184 ms 131688 KB Output is correct
147 Correct 202 ms 131928 KB Output is correct
148 Correct 185 ms 131668 KB Output is correct
149 Correct 157 ms 125868 KB Output is correct
150 Correct 115 ms 120916 KB Output is correct
151 Correct 100 ms 120148 KB Output is correct
152 Correct 82 ms 119904 KB Output is correct
153 Correct 154 ms 125776 KB Output is correct
154 Correct 116 ms 121172 KB Output is correct
155 Correct 98 ms 120144 KB Output is correct
156 Correct 91 ms 120144 KB Output is correct
157 Correct 171 ms 129308 KB Output is correct
158 Correct 159 ms 127428 KB Output is correct
159 Correct 156 ms 127056 KB Output is correct
160 Correct 151 ms 126800 KB Output is correct
161 Correct 180 ms 131664 KB Output is correct
162 Correct 183 ms 131624 KB Output is correct
163 Correct 187 ms 131604 KB Output is correct
164 Correct 184 ms 131552 KB Output is correct
165 Correct 77 ms 119944 KB Output is correct
166 Correct 80 ms 119976 KB Output is correct
167 Correct 77 ms 119892 KB Output is correct
168 Correct 80 ms 120076 KB Output is correct
169 Correct 95 ms 120144 KB Output is correct
170 Correct 88 ms 120144 KB Output is correct
171 Correct 87 ms 119896 KB Output is correct
172 Correct 82 ms 119888 KB Output is correct
173 Correct 147 ms 125780 KB Output is correct
174 Correct 114 ms 121116 KB Output is correct
175 Correct 100 ms 120164 KB Output is correct
176 Correct 83 ms 119888 KB Output is correct
177 Correct 146 ms 125764 KB Output is correct
178 Correct 127 ms 121216 KB Output is correct
179 Correct 105 ms 120148 KB Output is correct
180 Correct 88 ms 119892 KB Output is correct
181 Correct 91 ms 125636 KB Output is correct
182 Correct 111 ms 125512 KB Output is correct
183 Correct 87 ms 125688 KB Output is correct
184 Correct 102 ms 125520 KB Output is correct
185 Correct 92 ms 125520 KB Output is correct
186 Correct 113 ms 125608 KB Output is correct
187 Correct 88 ms 125608 KB Output is correct
188 Correct 110 ms 125648 KB Output is correct
189 Correct 104 ms 125800 KB Output is correct
190 Correct 110 ms 125520 KB Output is correct
191 Correct 107 ms 131232 KB Output is correct
192 Correct 123 ms 131356 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 355 ms 168272 KB Output is correct
2 Correct 357 ms 168184 KB Output is correct
3 Correct 667 ms 217208 KB Output is correct
4 Correct 672 ms 216884 KB Output is correct
5 Correct 815 ms 241772 KB Output is correct
6 Correct 834 ms 241584 KB Output is correct
7 Correct 727 ms 127708 KB Output is correct
8 Correct 597 ms 124508 KB Output is correct
9 Correct 573 ms 124080 KB Output is correct
10 Correct 831 ms 131288 KB Output is correct
11 Correct 595 ms 124312 KB Output is correct
12 Correct 567 ms 124132 KB Output is correct
13 Correct 847 ms 133372 KB Output is correct
14 Correct 597 ms 124500 KB Output is correct
15 Correct 573 ms 124636 KB Output is correct
16 Correct 528 ms 124968 KB Output is correct
17 Correct 505 ms 124704 KB Output is correct
18 Correct 512 ms 124752 KB Output is correct
19 Correct 507 ms 124824 KB Output is correct
20 Correct 519 ms 124816 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 55 ms 118868 KB Output is correct
2 Correct 55 ms 118864 KB Output is correct
3 Correct 27 ms 118876 KB Output is correct
4 Correct 40 ms 118868 KB Output is correct
5 Correct 39 ms 118872 KB Output is correct
6 Correct 39 ms 118876 KB Output is correct
7 Correct 37 ms 118976 KB Output is correct
8 Correct 38 ms 118876 KB Output is correct
9 Correct 28 ms 119128 KB Output is correct
10 Correct 41 ms 118868 KB Output is correct
11 Correct 44 ms 119120 KB Output is correct
12 Correct 39 ms 119092 KB Output is correct
13 Correct 37 ms 119128 KB Output is correct
14 Correct 37 ms 119120 KB Output is correct
15 Correct 43 ms 119120 KB Output is correct
16 Correct 46 ms 119124 KB Output is correct
17 Correct 39 ms 118868 KB Output is correct
18 Correct 38 ms 118868 KB Output is correct
19 Correct 39 ms 118868 KB Output is correct
20 Correct 37 ms 118816 KB Output is correct
21 Correct 37 ms 118872 KB Output is correct
22 Correct 37 ms 119000 KB Output is correct
23 Correct 37 ms 118924 KB Output is correct
24 Correct 37 ms 118972 KB Output is correct
25 Correct 29 ms 119000 KB Output is correct
26 Correct 40 ms 119000 KB Output is correct
27 Correct 39 ms 118864 KB Output is correct
28 Correct 44 ms 118864 KB Output is correct
29 Correct 43 ms 119120 KB Output is correct
30 Correct 39 ms 119132 KB Output is correct
31 Correct 39 ms 118868 KB Output is correct
32 Correct 41 ms 119120 KB Output is correct
33 Correct 38 ms 118876 KB Output is correct
34 Correct 40 ms 118868 KB Output is correct
35 Correct 38 ms 118992 KB Output is correct
36 Correct 27 ms 118836 KB Output is correct
37 Correct 41 ms 118932 KB Output is correct
38 Correct 46 ms 119008 KB Output is correct
39 Correct 39 ms 118872 KB Output is correct
40 Correct 38 ms 119004 KB Output is correct
41 Correct 39 ms 118864 KB Output is correct
42 Correct 39 ms 118896 KB Output is correct
43 Correct 39 ms 118868 KB Output is correct
44 Correct 28 ms 118864 KB Output is correct
45 Correct 40 ms 118980 KB Output is correct
46 Correct 40 ms 118900 KB Output is correct
47 Correct 48 ms 119032 KB Output is correct
48 Correct 38 ms 119032 KB Output is correct
49 Correct 38 ms 118876 KB Output is correct
50 Correct 43 ms 118868 KB Output is correct
51 Correct 30 ms 118864 KB Output is correct
52 Correct 55 ms 119000 KB Output is correct
53 Correct 62 ms 118864 KB Output is correct
54 Correct 52 ms 118884 KB Output is correct
55 Correct 61 ms 119060 KB Output is correct
56 Correct 52 ms 118864 KB Output is correct
57 Correct 27 ms 118816 KB Output is correct
58 Correct 44 ms 119028 KB Output is correct
59 Correct 40 ms 119072 KB Output is correct
60 Correct 41 ms 119104 KB Output is correct
61 Correct 38 ms 118836 KB Output is correct
62 Correct 38 ms 118776 KB Output is correct
63 Correct 38 ms 118872 KB Output is correct
64 Correct 69 ms 120500 KB Output is correct
65 Correct 60 ms 119472 KB Output is correct
66 Correct 70 ms 119272 KB Output is correct
67 Correct 51 ms 119124 KB Output is correct
68 Correct 70 ms 120620 KB Output is correct
69 Correct 60 ms 119380 KB Output is correct
70 Correct 56 ms 119124 KB Output is correct
71 Correct 51 ms 119132 KB Output is correct
72 Correct 74 ms 121304 KB Output is correct
73 Correct 67 ms 120884 KB Output is correct
74 Correct 68 ms 120912 KB Output is correct
75 Correct 73 ms 120912 KB Output is correct
76 Correct 68 ms 121940 KB Output is correct
77 Correct 68 ms 121988 KB Output is correct
78 Correct 66 ms 121936 KB Output is correct
79 Correct 88 ms 121940 KB Output is correct
80 Correct 66 ms 120660 KB Output is correct
81 Correct 56 ms 119380 KB Output is correct
82 Correct 61 ms 119308 KB Output is correct
83 Correct 55 ms 119120 KB Output is correct
84 Correct 61 ms 120656 KB Output is correct
85 Correct 55 ms 119560 KB Output is correct
86 Correct 68 ms 119204 KB Output is correct
87 Correct 52 ms 119132 KB Output is correct
88 Correct 70 ms 121428 KB Output is correct
89 Correct 83 ms 120916 KB Output is correct
90 Correct 63 ms 120880 KB Output is correct
91 Correct 62 ms 120836 KB Output is correct
92 Correct 68 ms 121940 KB Output is correct
93 Correct 68 ms 121940 KB Output is correct
94 Correct 60 ms 121980 KB Output is correct
95 Correct 68 ms 121816 KB Output is correct
96 Correct 49 ms 119240 KB Output is correct
97 Correct 49 ms 119124 KB Output is correct
98 Correct 47 ms 119120 KB Output is correct
99 Correct 48 ms 119224 KB Output is correct
100 Correct 55 ms 119172 KB Output is correct
101 Correct 54 ms 119108 KB Output is correct
102 Correct 54 ms 119120 KB Output is correct
103 Correct 50 ms 119068 KB Output is correct
104 Correct 60 ms 120576 KB Output is correct
105 Correct 55 ms 119500 KB Output is correct
106 Correct 55 ms 119120 KB Output is correct
107 Correct 42 ms 119124 KB Output is correct
108 Correct 79 ms 120460 KB Output is correct
109 Correct 72 ms 119480 KB Output is correct
110 Correct 68 ms 119300 KB Output is correct
111 Correct 65 ms 119256 KB Output is correct
112 Correct 44 ms 120660 KB Output is correct
113 Correct 57 ms 120660 KB Output is correct
114 Correct 51 ms 120660 KB Output is correct
115 Correct 64 ms 120664 KB Output is correct
116 Correct 51 ms 120672 KB Output is correct
117 Correct 55 ms 120640 KB Output is correct
118 Correct 45 ms 120668 KB Output is correct
119 Correct 70 ms 120588 KB Output is correct
120 Correct 76 ms 120492 KB Output is correct
121 Correct 71 ms 120656 KB Output is correct
122 Correct 74 ms 121936 KB Output is correct
123 Correct 74 ms 121940 KB Output is correct
124 Correct 63 ms 119472 KB Output is correct
125 Correct 51 ms 119124 KB Output is correct
126 Correct 49 ms 119132 KB Output is correct
127 Correct 53 ms 119636 KB Output is correct
128 Correct 41 ms 119336 KB Output is correct
129 Correct 64 ms 119060 KB Output is correct
130 Correct 70 ms 119792 KB Output is correct
131 Correct 65 ms 119280 KB Output is correct
132 Correct 65 ms 119288 KB Output is correct
133 Correct 181 ms 125712 KB Output is correct
134 Correct 122 ms 121156 KB Output is correct
135 Correct 129 ms 120148 KB Output is correct
136 Correct 110 ms 120036 KB Output is correct
137 Correct 193 ms 126148 KB Output is correct
138 Correct 134 ms 121088 KB Output is correct
139 Correct 110 ms 120212 KB Output is correct
140 Correct 106 ms 120132 KB Output is correct
141 Correct 195 ms 129424 KB Output is correct
142 Correct 161 ms 127420 KB Output is correct
143 Correct 156 ms 127048 KB Output is correct
144 Correct 171 ms 126948 KB Output is correct
145 Correct 183 ms 131668 KB Output is correct
146 Correct 184 ms 131688 KB Output is correct
147 Correct 202 ms 131928 KB Output is correct
148 Correct 185 ms 131668 KB Output is correct
149 Correct 157 ms 125868 KB Output is correct
150 Correct 115 ms 120916 KB Output is correct
151 Correct 100 ms 120148 KB Output is correct
152 Correct 82 ms 119904 KB Output is correct
153 Correct 154 ms 125776 KB Output is correct
154 Correct 116 ms 121172 KB Output is correct
155 Correct 98 ms 120144 KB Output is correct
156 Correct 91 ms 120144 KB Output is correct
157 Correct 171 ms 129308 KB Output is correct
158 Correct 159 ms 127428 KB Output is correct
159 Correct 156 ms 127056 KB Output is correct
160 Correct 151 ms 126800 KB Output is correct
161 Correct 180 ms 131664 KB Output is correct
162 Correct 183 ms 131624 KB Output is correct
163 Correct 187 ms 131604 KB Output is correct
164 Correct 184 ms 131552 KB Output is correct
165 Correct 77 ms 119944 KB Output is correct
166 Correct 80 ms 119976 KB Output is correct
167 Correct 77 ms 119892 KB Output is correct
168 Correct 80 ms 120076 KB Output is correct
169 Correct 95 ms 120144 KB Output is correct
170 Correct 88 ms 120144 KB Output is correct
171 Correct 87 ms 119896 KB Output is correct
172 Correct 82 ms 119888 KB Output is correct
173 Correct 147 ms 125780 KB Output is correct
174 Correct 114 ms 121116 KB Output is correct
175 Correct 100 ms 120164 KB Output is correct
176 Correct 83 ms 119888 KB Output is correct
177 Correct 146 ms 125764 KB Output is correct
178 Correct 127 ms 121216 KB Output is correct
179 Correct 105 ms 120148 KB Output is correct
180 Correct 88 ms 119892 KB Output is correct
181 Correct 91 ms 125636 KB Output is correct
182 Correct 111 ms 125512 KB Output is correct
183 Correct 87 ms 125688 KB Output is correct
184 Correct 102 ms 125520 KB Output is correct
185 Correct 92 ms 125520 KB Output is correct
186 Correct 113 ms 125608 KB Output is correct
187 Correct 88 ms 125608 KB Output is correct
188 Correct 110 ms 125648 KB Output is correct
189 Correct 104 ms 125800 KB Output is correct
190 Correct 110 ms 125520 KB Output is correct
191 Correct 107 ms 131232 KB Output is correct
192 Correct 123 ms 131356 KB Output is correct
193 Correct 355 ms 168272 KB Output is correct
194 Correct 357 ms 168184 KB Output is correct
195 Correct 667 ms 217208 KB Output is correct
196 Correct 672 ms 216884 KB Output is correct
197 Correct 815 ms 241772 KB Output is correct
198 Correct 834 ms 241584 KB Output is correct
199 Correct 727 ms 127708 KB Output is correct
200 Correct 597 ms 124508 KB Output is correct
201 Correct 573 ms 124080 KB Output is correct
202 Correct 831 ms 131288 KB Output is correct
203 Correct 595 ms 124312 KB Output is correct
204 Correct 567 ms 124132 KB Output is correct
205 Correct 847 ms 133372 KB Output is correct
206 Correct 597 ms 124500 KB Output is correct
207 Correct 573 ms 124636 KB Output is correct
208 Correct 528 ms 124968 KB Output is correct
209 Correct 505 ms 124704 KB Output is correct
210 Correct 512 ms 124752 KB Output is correct
211 Correct 507 ms 124824 KB Output is correct
212 Correct 519 ms 124816 KB Output is correct
213 Correct 2537 ms 184164 KB Output is correct
214 Correct 1497 ms 137452 KB Output is correct
215 Correct 946 ms 127428 KB Output is correct
216 Correct 657 ms 126548 KB Output is correct
217 Correct 2415 ms 184152 KB Output is correct
218 Correct 1546 ms 137708 KB Output is correct
219 Correct 986 ms 127644 KB Output is correct
220 Correct 761 ms 126428 KB Output is correct
221 Correct 2792 ms 219660 KB Output is correct
222 Correct 2465 ms 200976 KB Output is correct
223 Correct 2352 ms 196308 KB Output is correct
224 Correct 2372 ms 195656 KB Output is correct
225 Correct 2897 ms 242836 KB Output is correct
226 Correct 2792 ms 243092 KB Output is correct
227 Correct 2796 ms 242904 KB Output is correct
228 Correct 2839 ms 242720 KB Output is correct
229 Correct 2462 ms 184000 KB Output is correct
230 Correct 1499 ms 137172 KB Output is correct
231 Correct 923 ms 127448 KB Output is correct
232 Correct 649 ms 126512 KB Output is correct
233 Correct 2476 ms 184432 KB Output is correct
234 Correct 1515 ms 137404 KB Output is correct
235 Correct 965 ms 127624 KB Output is correct
236 Correct 717 ms 126272 KB Output is correct
237 Correct 2654 ms 216740 KB Output is correct
238 Correct 2451 ms 196056 KB Output is correct
239 Correct 2401 ms 192280 KB Output is correct
240 Correct 2391 ms 191444 KB Output is correct
241 Correct 2840 ms 238436 KB Output is correct
242 Correct 2820 ms 238264 KB Output is correct
243 Correct 2848 ms 238264 KB Output is correct
244 Correct 2816 ms 238216 KB Output is correct
245 Correct 553 ms 122448 KB Output is correct
246 Correct 539 ms 122620 KB Output is correct
247 Correct 566 ms 122364 KB Output is correct
248 Correct 546 ms 122896 KB Output is correct
249 Correct 699 ms 122376 KB Output is correct
250 Correct 702 ms 122116 KB Output is correct
251 Correct 710 ms 122056 KB Output is correct
252 Correct 617 ms 122452 KB Output is correct
253 Correct 2212 ms 179968 KB Output is correct
254 Correct 1375 ms 133112 KB Output is correct
255 Correct 918 ms 123476 KB Output is correct
256 Correct 651 ms 122340 KB Output is correct
257 Correct 2033 ms 180128 KB Output is correct
258 Correct 1368 ms 133044 KB Output is correct
259 Correct 913 ms 123296 KB Output is correct
260 Correct 629 ms 122276 KB Output is correct
261 Correct 914 ms 181072 KB Output is correct
262 Correct 1366 ms 181316 KB Output is correct
263 Correct 635 ms 180980 KB Output is correct
264 Correct 1046 ms 181340 KB Output is correct
265 Correct 928 ms 181332 KB Output is correct
266 Correct 1423 ms 181156 KB Output is correct
267 Correct 632 ms 181280 KB Output is correct
268 Correct 1053 ms 181396 KB Output is correct
269 Correct 815 ms 237700 KB Output is correct
270 Correct 824 ms 237176 KB Output is correct
271 Correct 734 ms 124672 KB Output is correct
272 Correct 588 ms 121688 KB Output is correct
273 Correct 863 ms 129136 KB Output is correct
274 Correct 594 ms 121152 KB Output is correct
275 Correct 640 ms 181192 KB Output is correct