답안 #292694

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
292694 2020-09-07T11:54:44 Z 최은수(#5797) 급행열차 20/19 (ROI19_express) C++17
89 / 100
2831 ms 1028364 KB
#include<iostream>
#include<vector>
#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;
ll nv[1600];
inline void merge(vector<ll>&v,const vector<ll>&vi,ll w,int p)
{
    int n=v.size(),m=vi.size();
    int i=0,j=0;
    int nvs=0;
    while(i<n&&j<m)
    {
        if(v[i]<vi[j]+w)
            nv[nvs++]=v[i],i++;
        else
            nv[nvs++]=vi[j]+w,j++;
    }
    while(i<n||j<m)
    {
        if(i<n)
            nv[nvs++]=v[i],i++;
        else
            nv[nvs++]=vi[j]+w,j++;
    }
    v.clear();
    for(int i=0;i<nvs;i++)
    {
        ll&t=nv[i];
        if((int)v.size()>1&&t*(p-1)<=v[(int)v.size()-2]*p)
            v.pop_back();
        v.eb(t);
    }
    return;
}
inline void solve()
{
    int n,m,q,p;
    cin>>n>>m>>q>>p;
    vector<vector<ll> >vv(n+1);
    vector<vector<pl> >adj(n+1);
    for(int i=0;i<m;i++)
    {
        int u,v;
        ll d;
        cin>>u>>v>>d;
        adj[v].eb(u,d);
    }
    vv[1].eb(0);
    for(int i=1;i++<n;)
        for(pl&t:adj[i])
            merge(vv[i],vv[t.fi],t.se,p);
    for(int qi=0;qi++<q;)
    {
        int i;
        ll r;
        cin>>i>>r;
        auto it=lower_bound(all(vv[i]),r);
        if(it!=vv[i].end()&&*it*(p-1)<=r*p)
            cout<<1;
        else
            cout<<0;
    }
    cout<<'\n';
    return;
}
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    int t;
    cin>>t;
    while(t-->0)
        solve();
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 384 KB Output is correct
2 Correct 0 ms 384 KB Output is correct
3 Correct 0 ms 384 KB Output is correct
4 Correct 0 ms 384 KB Output is correct
5 Correct 6 ms 384 KB Output is correct
6 Correct 0 ms 384 KB Output is correct
7 Correct 1 ms 384 KB Output is correct
8 Correct 0 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 512 KB Output is correct
12 Correct 10 ms 384 KB Output is correct
13 Correct 9 ms 384 KB Output is correct
14 Correct 8 ms 384 KB Output is correct
15 Correct 7 ms 384 KB Output is correct
16 Correct 7 ms 384 KB Output is correct
17 Correct 11 ms 384 KB Output is correct
18 Correct 8 ms 384 KB Output is correct
19 Correct 8 ms 384 KB Output is correct
20 Correct 8 ms 384 KB Output is correct
21 Correct 7 ms 384 KB Output is correct
22 Correct 7 ms 384 KB Output is correct
23 Correct 8 ms 384 KB Output is correct
24 Correct 5 ms 384 KB Output is correct
25 Correct 6 ms 384 KB Output is correct
26 Correct 5 ms 384 KB Output is correct
27 Correct 5 ms 384 KB Output is correct
28 Correct 6 ms 384 KB Output is correct
29 Correct 6 ms 384 KB Output is correct
30 Correct 6 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 0 ms 384 KB Output is correct
4 Correct 0 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 0 ms 384 KB Output is correct
9 Correct 0 ms 384 KB Output is correct
10 Correct 4 ms 384 KB Output is correct
11 Correct 8 ms 896 KB Output is correct
12 Correct 4 ms 768 KB Output is correct
13 Correct 7 ms 768 KB Output is correct
14 Correct 5 ms 384 KB Output is correct
15 Correct 3 ms 384 KB Output is correct
16 Correct 5 ms 384 KB Output is correct
17 Correct 6 ms 384 KB Output is correct
18 Correct 4 ms 384 KB Output is correct
19 Correct 4 ms 384 KB Output is correct
20 Correct 3 ms 384 KB Output is correct
21 Correct 4 ms 384 KB Output is correct
22 Correct 4 ms 768 KB Output is correct
23 Correct 4 ms 768 KB Output is correct
24 Correct 3 ms 384 KB Output is correct
25 Correct 3 ms 512 KB Output is correct
26 Correct 4 ms 384 KB Output is correct
27 Correct 3 ms 384 KB Output is correct
28 Correct 2 ms 384 KB Output is correct
29 Correct 2 ms 384 KB Output is correct
30 Correct 2 ms 384 KB Output is correct
31 Correct 3 ms 384 KB Output is correct
32 Correct 10 ms 2432 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 384 KB Output is correct
2 Correct 396 ms 34496 KB Output is correct
3 Correct 302 ms 7696 KB Output is correct
4 Correct 289 ms 3900 KB Output is correct
5 Correct 253 ms 1104 KB Output is correct
6 Correct 313 ms 11352 KB Output is correct
7 Correct 298 ms 6264 KB Output is correct
8 Correct 321 ms 11868 KB Output is correct
9 Correct 292 ms 6240 KB Output is correct
10 Correct 321 ms 11468 KB Output is correct
11 Correct 257 ms 6020 KB Output is correct
12 Correct 81 ms 512 KB Output is correct
13 Correct 5 ms 384 KB Output is correct
14 Correct 6 ms 384 KB Output is correct
15 Correct 8 ms 384 KB Output is correct
16 Correct 8 ms 384 KB Output is correct
17 Correct 20 ms 512 KB Output is correct
18 Correct 105 ms 1036 KB Output is correct
19 Correct 16 ms 512 KB Output is correct
20 Correct 31 ms 384 KB Output is correct
21 Correct 33 ms 504 KB Output is correct
22 Correct 31 ms 384 KB Output is correct
23 Correct 174 ms 36344 KB Output is correct
24 Correct 516 ms 144148 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 384 KB Output is correct
2 Correct 396 ms 34496 KB Output is correct
3 Correct 302 ms 7696 KB Output is correct
4 Correct 289 ms 3900 KB Output is correct
5 Correct 253 ms 1104 KB Output is correct
6 Correct 313 ms 11352 KB Output is correct
7 Correct 298 ms 6264 KB Output is correct
8 Correct 321 ms 11868 KB Output is correct
9 Correct 292 ms 6240 KB Output is correct
10 Correct 321 ms 11468 KB Output is correct
11 Correct 257 ms 6020 KB Output is correct
12 Correct 81 ms 512 KB Output is correct
13 Correct 5 ms 384 KB Output is correct
14 Correct 6 ms 384 KB Output is correct
15 Correct 8 ms 384 KB Output is correct
16 Correct 8 ms 384 KB Output is correct
17 Correct 20 ms 512 KB Output is correct
18 Correct 105 ms 1036 KB Output is correct
19 Correct 16 ms 512 KB Output is correct
20 Correct 31 ms 384 KB Output is correct
21 Correct 33 ms 504 KB Output is correct
22 Correct 31 ms 384 KB Output is correct
23 Correct 174 ms 36344 KB Output is correct
24 Correct 516 ms 144148 KB Output is correct
25 Correct 574 ms 37368 KB Output is correct
26 Correct 577 ms 13072 KB Output is correct
27 Correct 573 ms 6912 KB Output is correct
28 Correct 526 ms 2096 KB Output is correct
29 Correct 441 ms 1156 KB Output is correct
30 Correct 473 ms 1504 KB Output is correct
31 Correct 417 ms 20088 KB Output is correct
32 Correct 386 ms 10232 KB Output is correct
33 Correct 361 ms 14968 KB Output is correct
34 Correct 320 ms 7708 KB Output is correct
35 Correct 385 ms 20248 KB Output is correct
36 Correct 361 ms 10316 KB Output is correct
37 Correct 118 ms 808 KB Output is correct
38 Correct 8 ms 384 KB Output is correct
39 Correct 10 ms 832 KB Output is correct
40 Correct 2831 ms 1027448 KB Output is correct
41 Correct 2806 ms 1027840 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 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 2 ms 512 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 3 ms 1408 KB Output is correct
9 Correct 2 ms 384 KB Output is correct
10 Correct 2 ms 384 KB Output is correct
11 Correct 2 ms 384 KB Output is correct
12 Correct 2 ms 384 KB Output is correct
13 Correct 2 ms 384 KB Output is correct
14 Correct 3 ms 384 KB Output is correct
15 Correct 3 ms 384 KB Output is correct
16 Correct 2 ms 384 KB Output is correct
17 Correct 3 ms 560 KB Output is correct
18 Correct 3 ms 896 KB Output is correct
19 Correct 2 ms 512 KB Output is correct
20 Correct 3 ms 896 KB Output is correct
21 Correct 4 ms 1152 KB Output is correct
22 Correct 2 ms 672 KB Output is correct
23 Correct 3 ms 896 KB Output is correct
24 Correct 3 ms 768 KB Output is correct
25 Correct 4 ms 1280 KB Output is correct
26 Correct 1 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 1 ms 384 KB Output is correct
30 Correct 1 ms 384 KB Output is correct
31 Correct 1 ms 384 KB Output is correct
32 Correct 1 ms 384 KB Output is correct
33 Correct 1 ms 384 KB Output is correct
34 Correct 2 ms 384 KB Output is correct
35 Correct 2 ms 416 KB Output is correct
36 Correct 2 ms 384 KB Output is correct
37 Correct 2 ms 384 KB Output is correct
38 Correct 2 ms 384 KB Output is correct
39 Correct 2 ms 384 KB Output is correct
40 Correct 3 ms 384 KB Output is correct
41 Correct 2 ms 384 KB Output is correct
42 Correct 2 ms 384 KB Output is correct
43 Correct 7 ms 2432 KB Output is correct
44 Correct 7 ms 2432 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 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 2 ms 512 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 3 ms 1408 KB Output is correct
9 Correct 2 ms 384 KB Output is correct
10 Correct 2 ms 384 KB Output is correct
11 Correct 2 ms 384 KB Output is correct
12 Correct 2 ms 384 KB Output is correct
13 Correct 2 ms 384 KB Output is correct
14 Correct 3 ms 384 KB Output is correct
15 Correct 3 ms 384 KB Output is correct
16 Correct 2 ms 384 KB Output is correct
17 Correct 3 ms 560 KB Output is correct
18 Correct 3 ms 896 KB Output is correct
19 Correct 2 ms 512 KB Output is correct
20 Correct 3 ms 896 KB Output is correct
21 Correct 4 ms 1152 KB Output is correct
22 Correct 2 ms 672 KB Output is correct
23 Correct 3 ms 896 KB Output is correct
24 Correct 3 ms 768 KB Output is correct
25 Correct 4 ms 1280 KB Output is correct
26 Correct 1 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 1 ms 384 KB Output is correct
30 Correct 1 ms 384 KB Output is correct
31 Correct 1 ms 384 KB Output is correct
32 Correct 1 ms 384 KB Output is correct
33 Correct 1 ms 384 KB Output is correct
34 Correct 2 ms 384 KB Output is correct
35 Correct 2 ms 416 KB Output is correct
36 Correct 2 ms 384 KB Output is correct
37 Correct 2 ms 384 KB Output is correct
38 Correct 2 ms 384 KB Output is correct
39 Correct 2 ms 384 KB Output is correct
40 Correct 3 ms 384 KB Output is correct
41 Correct 2 ms 384 KB Output is correct
42 Correct 2 ms 384 KB Output is correct
43 Correct 7 ms 2432 KB Output is correct
44 Correct 7 ms 2432 KB Output is correct
45 Correct 603 ms 9780 KB Output is correct
46 Correct 1072 ms 44988 KB Output is correct
47 Correct 802 ms 47864 KB Output is correct
48 Correct 503 ms 1548 KB Output is correct
49 Correct 375 ms 1304 KB Output is correct
50 Correct 357 ms 1016 KB Output is correct
51 Correct 2 ms 384 KB Output is correct
52 Correct 1 ms 384 KB Output is correct
53 Correct 26 ms 384 KB Output is correct
54 Correct 12 ms 384 KB Output is correct
55 Correct 322 ms 1212 KB Output is correct
56 Correct 751 ms 1680 KB Output is correct
57 Correct 526 ms 1124 KB Output is correct
58 Correct 367 ms 1404 KB Output is correct
59 Correct 734 ms 1628 KB Output is correct
60 Correct 391 ms 2544 KB Output is correct
61 Correct 793 ms 21208 KB Output is correct
62 Correct 1582 ms 12920 KB Output is correct
63 Correct 786 ms 9916 KB Output is correct
64 Correct 400 ms 948 KB Output is correct
65 Correct 1316 ms 223368 KB Output is correct
66 Correct 522 ms 39160 KB Output is correct
67 Correct 592 ms 49784 KB Output is correct
68 Correct 568 ms 55672 KB Output is correct
69 Correct 1058 ms 239760 KB Output is correct
70 Correct 713 ms 76092 KB Output is correct
71 Correct 1250 ms 526172 KB Output is correct
72 Correct 166 ms 504 KB Output is correct
73 Correct 562 ms 55664 KB Output is correct
74 Correct 705 ms 31968 KB Output is correct
75 Correct 71 ms 788 KB Output is correct
76 Correct 80 ms 1016 KB Output is correct
77 Correct 71 ms 808 KB Output is correct
78 Correct 138 ms 1080 KB Output is correct
79 Correct 311 ms 18860 KB Output is correct
80 Correct 315 ms 19020 KB Output is correct
81 Correct 312 ms 18868 KB Output is correct
82 Correct 316 ms 18944 KB Output is correct
83 Correct 2762 ms 1028364 KB Output is correct
84 Correct 2809 ms 1027124 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 384 KB Output is correct
2 Correct 0 ms 384 KB Output is correct
3 Correct 0 ms 384 KB Output is correct
4 Correct 0 ms 384 KB Output is correct
5 Correct 6 ms 384 KB Output is correct
6 Correct 0 ms 384 KB Output is correct
7 Correct 1 ms 384 KB Output is correct
8 Correct 0 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 512 KB Output is correct
12 Correct 10 ms 384 KB Output is correct
13 Correct 9 ms 384 KB Output is correct
14 Correct 8 ms 384 KB Output is correct
15 Correct 7 ms 384 KB Output is correct
16 Correct 7 ms 384 KB Output is correct
17 Correct 11 ms 384 KB Output is correct
18 Correct 8 ms 384 KB Output is correct
19 Correct 8 ms 384 KB Output is correct
20 Correct 8 ms 384 KB Output is correct
21 Correct 7 ms 384 KB Output is correct
22 Correct 7 ms 384 KB Output is correct
23 Correct 8 ms 384 KB Output is correct
24 Correct 5 ms 384 KB Output is correct
25 Correct 6 ms 384 KB Output is correct
26 Correct 5 ms 384 KB Output is correct
27 Correct 5 ms 384 KB Output is correct
28 Correct 6 ms 384 KB Output is correct
29 Correct 6 ms 384 KB Output is correct
30 Correct 6 ms 384 KB Output is correct
31 Correct 1 ms 384 KB Output is correct
32 Correct 1 ms 384 KB Output is correct
33 Correct 0 ms 384 KB Output is correct
34 Correct 0 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 0 ms 384 KB Output is correct
39 Correct 0 ms 384 KB Output is correct
40 Correct 4 ms 384 KB Output is correct
41 Correct 8 ms 896 KB Output is correct
42 Correct 4 ms 768 KB Output is correct
43 Correct 7 ms 768 KB Output is correct
44 Correct 5 ms 384 KB Output is correct
45 Correct 3 ms 384 KB Output is correct
46 Correct 5 ms 384 KB Output is correct
47 Correct 6 ms 384 KB Output is correct
48 Correct 4 ms 384 KB Output is correct
49 Correct 4 ms 384 KB Output is correct
50 Correct 3 ms 384 KB Output is correct
51 Correct 4 ms 384 KB Output is correct
52 Correct 4 ms 768 KB Output is correct
53 Correct 4 ms 768 KB Output is correct
54 Correct 3 ms 384 KB Output is correct
55 Correct 3 ms 512 KB Output is correct
56 Correct 4 ms 384 KB Output is correct
57 Correct 3 ms 384 KB Output is correct
58 Correct 2 ms 384 KB Output is correct
59 Correct 2 ms 384 KB Output is correct
60 Correct 2 ms 384 KB Output is correct
61 Correct 3 ms 384 KB Output is correct
62 Correct 10 ms 2432 KB Output is correct
63 Correct 1 ms 384 KB Output is correct
64 Correct 396 ms 34496 KB Output is correct
65 Correct 302 ms 7696 KB Output is correct
66 Correct 289 ms 3900 KB Output is correct
67 Correct 253 ms 1104 KB Output is correct
68 Correct 313 ms 11352 KB Output is correct
69 Correct 298 ms 6264 KB Output is correct
70 Correct 321 ms 11868 KB Output is correct
71 Correct 292 ms 6240 KB Output is correct
72 Correct 321 ms 11468 KB Output is correct
73 Correct 257 ms 6020 KB Output is correct
74 Correct 81 ms 512 KB Output is correct
75 Correct 5 ms 384 KB Output is correct
76 Correct 6 ms 384 KB Output is correct
77 Correct 8 ms 384 KB Output is correct
78 Correct 8 ms 384 KB Output is correct
79 Correct 20 ms 512 KB Output is correct
80 Correct 105 ms 1036 KB Output is correct
81 Correct 16 ms 512 KB Output is correct
82 Correct 31 ms 384 KB Output is correct
83 Correct 33 ms 504 KB Output is correct
84 Correct 31 ms 384 KB Output is correct
85 Correct 174 ms 36344 KB Output is correct
86 Correct 516 ms 144148 KB Output is correct
87 Correct 574 ms 37368 KB Output is correct
88 Correct 577 ms 13072 KB Output is correct
89 Correct 573 ms 6912 KB Output is correct
90 Correct 526 ms 2096 KB Output is correct
91 Correct 441 ms 1156 KB Output is correct
92 Correct 473 ms 1504 KB Output is correct
93 Correct 417 ms 20088 KB Output is correct
94 Correct 386 ms 10232 KB Output is correct
95 Correct 361 ms 14968 KB Output is correct
96 Correct 320 ms 7708 KB Output is correct
97 Correct 385 ms 20248 KB Output is correct
98 Correct 361 ms 10316 KB Output is correct
99 Correct 118 ms 808 KB Output is correct
100 Correct 8 ms 384 KB Output is correct
101 Correct 10 ms 832 KB Output is correct
102 Correct 2831 ms 1027448 KB Output is correct
103 Correct 2806 ms 1027840 KB Output is correct
104 Correct 0 ms 384 KB Output is correct
105 Correct 1 ms 384 KB Output is correct
106 Correct 1 ms 384 KB Output is correct
107 Correct 2 ms 512 KB Output is correct
108 Correct 1 ms 384 KB Output is correct
109 Correct 1 ms 384 KB Output is correct
110 Correct 1 ms 384 KB Output is correct
111 Correct 3 ms 1408 KB Output is correct
112 Correct 2 ms 384 KB Output is correct
113 Correct 2 ms 384 KB Output is correct
114 Correct 2 ms 384 KB Output is correct
115 Correct 2 ms 384 KB Output is correct
116 Correct 2 ms 384 KB Output is correct
117 Correct 3 ms 384 KB Output is correct
118 Correct 3 ms 384 KB Output is correct
119 Correct 2 ms 384 KB Output is correct
120 Correct 3 ms 560 KB Output is correct
121 Correct 3 ms 896 KB Output is correct
122 Correct 2 ms 512 KB Output is correct
123 Correct 3 ms 896 KB Output is correct
124 Correct 4 ms 1152 KB Output is correct
125 Correct 2 ms 672 KB Output is correct
126 Correct 3 ms 896 KB Output is correct
127 Correct 3 ms 768 KB Output is correct
128 Correct 4 ms 1280 KB Output is correct
129 Correct 1 ms 384 KB Output is correct
130 Correct 1 ms 384 KB Output is correct
131 Correct 1 ms 384 KB Output is correct
132 Correct 1 ms 384 KB Output is correct
133 Correct 1 ms 384 KB Output is correct
134 Correct 1 ms 384 KB Output is correct
135 Correct 1 ms 384 KB Output is correct
136 Correct 1 ms 384 KB Output is correct
137 Correct 2 ms 384 KB Output is correct
138 Correct 2 ms 416 KB Output is correct
139 Correct 2 ms 384 KB Output is correct
140 Correct 2 ms 384 KB Output is correct
141 Correct 2 ms 384 KB Output is correct
142 Correct 2 ms 384 KB Output is correct
143 Correct 3 ms 384 KB Output is correct
144 Correct 2 ms 384 KB Output is correct
145 Correct 2 ms 384 KB Output is correct
146 Correct 7 ms 2432 KB Output is correct
147 Correct 7 ms 2432 KB Output is correct
148 Correct 603 ms 9780 KB Output is correct
149 Correct 1072 ms 44988 KB Output is correct
150 Correct 802 ms 47864 KB Output is correct
151 Correct 503 ms 1548 KB Output is correct
152 Correct 375 ms 1304 KB Output is correct
153 Correct 357 ms 1016 KB Output is correct
154 Correct 2 ms 384 KB Output is correct
155 Correct 1 ms 384 KB Output is correct
156 Correct 26 ms 384 KB Output is correct
157 Correct 12 ms 384 KB Output is correct
158 Correct 322 ms 1212 KB Output is correct
159 Correct 751 ms 1680 KB Output is correct
160 Correct 526 ms 1124 KB Output is correct
161 Correct 367 ms 1404 KB Output is correct
162 Correct 734 ms 1628 KB Output is correct
163 Correct 391 ms 2544 KB Output is correct
164 Correct 793 ms 21208 KB Output is correct
165 Correct 1582 ms 12920 KB Output is correct
166 Correct 786 ms 9916 KB Output is correct
167 Correct 400 ms 948 KB Output is correct
168 Correct 1316 ms 223368 KB Output is correct
169 Correct 522 ms 39160 KB Output is correct
170 Correct 592 ms 49784 KB Output is correct
171 Correct 568 ms 55672 KB Output is correct
172 Correct 1058 ms 239760 KB Output is correct
173 Correct 713 ms 76092 KB Output is correct
174 Correct 1250 ms 526172 KB Output is correct
175 Correct 166 ms 504 KB Output is correct
176 Correct 562 ms 55664 KB Output is correct
177 Correct 705 ms 31968 KB Output is correct
178 Correct 71 ms 788 KB Output is correct
179 Correct 80 ms 1016 KB Output is correct
180 Correct 71 ms 808 KB Output is correct
181 Correct 138 ms 1080 KB Output is correct
182 Correct 311 ms 18860 KB Output is correct
183 Correct 315 ms 19020 KB Output is correct
184 Correct 312 ms 18868 KB Output is correct
185 Correct 316 ms 18944 KB Output is correct
186 Correct 2762 ms 1028364 KB Output is correct
187 Correct 2809 ms 1027124 KB Output is correct
188 Correct 582 ms 9808 KB Output is correct
189 Correct 1065 ms 45176 KB Output is correct
190 Correct 767 ms 47992 KB Output is correct
191 Correct 462 ms 1880 KB Output is correct
192 Correct 420 ms 1144 KB Output is correct
193 Correct 425 ms 1144 KB Output is correct
194 Correct 373 ms 1420 KB Output is correct
195 Correct 344 ms 1008 KB Output is correct
196 Correct 593 ms 12008 KB Output is correct
197 Correct 554 ms 9544 KB Output is correct
198 Correct 581 ms 11812 KB Output is correct
199 Correct 534 ms 9060 KB Output is correct
200 Correct 544 ms 11856 KB Output is correct
201 Correct 548 ms 9468 KB Output is correct
202 Correct 158 ms 632 KB Output is correct
203 Correct 157 ms 632 KB Output is correct
204 Correct 146 ms 632 KB Output is correct
205 Correct 58 ms 384 KB Output is correct
206 Correct 276 ms 888 KB Output is correct
207 Correct 335 ms 760 KB Output is correct
208 Correct 330 ms 764 KB Output is correct
209 Correct 457 ms 156520 KB Output is correct
210 Correct 611 ms 265808 KB Output is correct
211 Correct 541 ms 5668 KB Output is correct
212 Correct 2791 ms 1026724 KB Output is correct
213 Correct 2807 ms 1027188 KB Output is correct
214 Correct 5 ms 512 KB Output is correct
215 Correct 19 ms 896 KB Output is correct
216 Correct 46 ms 1656 KB Output is correct
217 Correct 76 ms 2424 KB Output is correct
218 Correct 123 ms 3192 KB Output is correct
219 Correct 174 ms 4728 KB Output is correct
220 Correct 237 ms 6120 KB Output is correct
221 Runtime error 50 ms 1272 KB Execution killed with signal 11
222 Halted 0 ms 0 KB -