#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define all(v) v.begin(), v.end()
#define filter(v) v.resize(unique(all(v)) - v.begin())
typedef long long ll;
typedef pair<int, int> ii;
const int MOD = 1e9 + 7;
inline ll add(ll x, ll y, ll mod = MOD) {return ((x % mod) + (y % mod)) % mod;}
inline ll sub(ll x, ll y, ll mod = MOD) {return ((x - y) % mod + mod) % mod;}
inline ll prod(ll x, ll y, ll mod = MOD) {return ((x % mod) * (y % mod)) % mod;}
const int N = 2e5 + 3;
const ll INF = 1e18;
int n, k;
vector<ii> adj[N];
int num_park = 0;
bool is_park[N];
ll near[N], reach[N];
void prepare() {
}
void input() {
cin >> n >> k;
for(int i = 1; i < n; i++) {
int u, v, w; cin >> u >> v >> w;
adj[u].push_back(ii(v, w));
adj[v].push_back(ii(u, w));
}
}
void dfs(int u, int p, ll limit) {
near[u] = INF; reach[u] = 0;
for(int i = 0; i < (int)adj[u].size(); i++) {
int v, w; tie(v, w) = adj[u][i];
if(v != p) {
dfs(v, u, limit);
if(reach[v] + min(1LL * w, near[v]) <= limit) {
near[u] = min(near[u], near[v] + w);
if(reach[v] + near[v] > limit) reach[u] = max(reach[u], reach[v] + w);
}else {
num_park++;
is_park[v] = true;
near[u] = min(near[u], 1LL * w);
}
}
}
}
bool check(ll limit) {
num_park = 0;
for(int i = 1; i <= n; i++) is_park[i] = false;
dfs(1, -1, limit);
if(reach[1] + near[1] > limit) {
num_park++;
is_park[1] = true;
}
return num_park <= k;
}
void process() {
ll l = 0, r = 1e15, res = 0;
while(l <= r) {
ll m = (l + r) >> 1;
if(check(m)) {
res = m;
r = m - 1;
}else {
l = m + 1;
}
}
cout << res << endl;
check(res);
vector<int> nodes;
for(int i = 1; i <= n; i++) if(is_park[i]) nodes.push_back(i);
for(int i = 1; i <= n; i++) if((int)nodes.size() < k && !is_park[i]) nodes.push_back(i);
for(int node : nodes) cout << node << " ";
}
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
#define task "Date_A_Live"
if(fopen(task".inp", "r")) {
freopen(task".inp", "r", stdin);
freopen(task".out", "w", stdout);
}
prepare();
int tc = 1; // cin >> tc;
for(int i = 1; i <= tc; i++) {
input();
process();
}
cerr << "Saa, watashtachi no deito hajimemashou" << endl;
return 0;
}
/*
B####BGGGGP7^^:::::^!J555PPPPPPPGGGGGB###BGGGGGBBGGBGGGGPPPPPPGGGBGGPPPPPPPPPPPPPPPPPPPPP555555555555555555555555YYJ!:... :!~~77!~~7??JJ?!~!?JYYJ
BBB###BGGGP5~:^^:^~J555PPPPPPPGGGGGB####BGGGGGGBBGGGGGGGGGGGGGGGBBGPPPPPPPPPPPPPPPPPPPPPPPPPPPPP5555555PPPP55555555YYJ~... .~!~!77~~7JJJJ?!~!?JYYY
BBBBB#BGGGPP!:^:^?5PPPPPPPPPGGGGGB#####BGGGGGGBBGGGGGGGGGGGGGGGB##GGGPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP5555555YY?^. .~!~!77~~7JJJJ?!~!?YYYY
BBBBBBGGGGGJ^^^!YPPPPPPPGGGGGGGGB#####BGGGGGGB#BBBGGGGGGGGGGGGGBB#GGGGGGGGGPPPPPPPPPPGGPPPPPPPPPPPPPPPPPPPPPPPPPPP5555Y5Y!. ^!~!77!~!?JJJ?7!!?YYYY
BBBBBBBGGGJ~:^7PPPPGPGGGGGGGGGB###B##GGGBBGBBB#BBBGGGGGGGGGGGGBBB#BGGGGGGGGGGPPPPPPGGGGGGPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP55YJ: :~!!777~!?JJJJ7!!?YYYY
BBBBBBBGGY~:^JGPGGGGGGGGGGGGBB###BB#BGGGGGBGB##BBBGGGGGGGGGGGBBGB#BGGGGGGBGGGGGGGGGGGGGGGGGPPPPPPPGGGGGPPPPPPPGGPPPPPPPPP55Y~ .~!!777!!7JJJJ?!!?Y5YY
BBBBBBBBP!^^YGGGGGGGGGGGGGGGB##BB#BBBBBBBBBBB##BBBBBGGGGGGGGB#BGB#B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GB#BGPPPPPPPPGGPPB#BGGPPGGPPPPPPPPB#BGGGGGBB#GJ?5GBGG5:5GGGGJ7??77?JYYJ??JPPP
#######BBBBBBBBBBBBBBBBBBBBBBB##BBBBBBBBBBBBBBBBBBBG7YGGBBBBGGGGGGGGGBGGGGGB#GPPPPPP5PPGPPG###GPPPPGPPPPPPPPB#BGGGGBB##BPJGBBGBJ:PPPGP7???7?JYYJ??YPPP
######BBBBBBBBBBBBBBBBBBBBBB###BBBBBBBBBBBBBB#GGBBBB?JGBGG5YBGGGGGGGGGGPPPPPBBPP5555555PPPPB###BGP5PPPP55555G#BGGGGGB##BGGGBBBGB~~GYGB57??7?JYYY??YPPP
#######BBBBBBBBBBBBBBBBBBBB####BBBBBBBBBBBBBB#P5BBGB55GGGG5:YGPPPPPPPJ7P5P55G#G555555555PP5P###B#BPP55PP5555P#BGGGPGGB##GGGGBBBBG:JGGGG??J??JYYYJ?YPPP
########BBBBBBBBBBBBBBBBBBB####BBBBBBBBBBBBBB#BGBBBGGGGGGP5:.YP55555P7.755555GBP555555555P55G##PPGBBPP55PGP55B#BPPPPPG##BGBGBBBBB5.PGBBP?J??JY5YYJYPPP
########BBBBBBBBBBBBBBBBB#####BBYGBGBBBBBBBBBBBBBBBGGGGPPP5~..YP555557 .?YYY55BG555555555P55PB#GYY55PPP555GGGB##PPPPPPG&BGGGGBBBBB~~BBBBJJJ?JY55YJYPGP
#########BBBBBBBBBBBB#B#######BBJYB5PBBBBBBBBBGBGBBGGPPPP5P!. .Y5YYYY? .?YY5Y5GG5Y55YYY55P55G#BY55YYY55555PG###GP55PPPBBGGGGBBBBBP:5BBBPJJJJY5P5Y5PGG
#########B###BB######BB########BJ?BYGBBBBBBBBBGGGGGGPPPP555?. .?YYYYY .JYY5Y5G555P5555Y5555GBP5YYYYYY555P5PGBBP55P5PPGPPPPGGBBBB!~BBBBJJJJY5P5Y5PGG
###############BB#BBBBB#########57PGBBBBBBBBBBGGGBGBPPPP555J. .^5555P~::.:J5YYY5P555P55555P555BG5555YYYY5Y5555PGP5P55P5PGPPPPGBBBBP:PBBB5JJJY5PP55PGG
######################B####&##&#G?PBBBBBBBBBBBGGGBPYP5PP5555^^^^:^YYYY! .?YYYY5P55PPYY555P55PB55P55YY555555555PPPPP555PP5PPGBBBBB~7BBBP???JYY555PPP
############&#B########BB#&&##&&BJGBBBBBBGGGGGGPGBY:5PGGPP55~ :JYJJ. .7YJY55555Y~Y5YYPP55GG5P5555555555555555PP555PPP55PBBBBBY.GBBG77?JYY55PPGG
###########&&##########B##&&#&&&BGBBBBBBBGGPGGGGYY5.7GPG55YY7 .?YY~ !YYYY5555~.?5Y5PP55PPPP5555555555555555555555PP55BBBBBG:YBBB??JY55PPGGGB
###########&&##PB######BG##&#&&&BBBBBBBBBGGPPGGGY?Y ?5PY5YYY. .!YJ. ^YYYY55Y5. !YY5P555P5P5P5555555555P5555555555PP5GBBBB#~7#BBJJY55PGGGBBB
B#####BG##&GJB######BY##&#&&&#BBBBBBGBBGPPPGGJ~J :55.J5Y5~ ..~5? .. :?5YY5P5? :JYYP5555PPPP555555555PBP55555555PPPG#BBB#Y7#B#PPPPPGBGBBB#
G######YG#&&BGPJB######GP##&&&&&&BGGGGGBB#BPPPPPJ.J ^5: 7YYY. ....::.:J~.:: .!Y555?5! .!Y5P5555PGP5555555555B#BP555555P5PG#BBBBB7BB#BPPPPGBBBBB#
G######B##&&##5Y###########&&&&&&BBGGGGGGB#G555GJ.7. !? :YP5PGBBBBBGGPPPY!: :?5Y:75: :?55555PGP5555555555GBBBG55555PGPG###BB#JBB#BPPPPGBBGBB#
######B##&&&##GG###########&&&&&&BGGGGGGGB##P55PY.^: ..!BB#&#BB###BB##J::^!?Y7. ^J7 ^J: ^YPY55GG55555555555P5PGGP5555GGGGB####GBB#GPP5PGBBGBB#
#########&&&###############&&&&&&#GGGGGPGG##B555P:...!G############BBB#! .. .~. .~: ~Y5YPG555555555555J55PGP555PGP#BB#######GP55PGBBGGB#
########&&&&################&&&&&&GPGPPPPG#&#B55P! :5#B##BB#PG#BGBBBBBBG . :J55PP555P5555555!.GG55PP55PG######&###P5YYPGBGGGBB
########&&&&################&&&&&&GPPPPPPPB#&&B55J!B&B.G#B##BBG7^Y555PG#. .?55JJP5PY5P55555:P#GPP5555PB########B55YYPGGGPPBB
########&&&&#############B###&&&BY5PPPPPPPG####G5PJ~GB ~###BP5YJ77?JYY~^ ~Y5^7557^YP5555JG#P55PPPP55PB######G5YJYPGGGPPGB
#####&##&&&&#############B#BB##G. !PPPPPPPP###PGP5Y..7~ 7GYPY5J777!7YPG: .7Y.:J5!.~Y555PB#P5555PPPGGPG#####P5YJYPGGGPPGB
#####&##&&&&###############BBB#! ^~55555PPPB##P5PP5J. .. ~5PP5J??????: :^ ~Y! .^?555#P5555J5P########G5YJJYPGGGPPGB
#######&&&&&################BGB~ .:J55555PPG##PP55PP?. . ..^~^^:... . .~^. :7PPG55557JP#B######PYJJJYPGGG55GB
#######&&&#################BBBB! .:555555PP##PP555!5J. .. . . :BGGP5G5!JP#B####B#PYJ?J5PGGP55PB
#####&#&&&#################BBBBP: .P555555PB#GP55P^.?J. . 7BB555G5!JG######B#GY??J5PGGP55PG
#######&&&########&##########BBBG^ 75555555B#G555P~..!J:. .PBB555G57JG#####BB#GY??J5GGGPYY5G
#####&#&&&########&&#########BBB&#Y: 7P555PPG#B555P!.. :?~. . !BBB55PP5Y5G#####BBBBJ??J5PGGPYJYP
#####&#&@&########&&#######&#####&&#Y!P55PPPPBB555P?... .^!. :BBBB55PP555G#####BBBBJ7?J5GGGPYJYP
#######&&&########&&&######&#####&&&&&B5P555PB#PP55Y.... .^: .. ^GBB#GYYPP5P5G#&###BBBB?7?Y5GGGPYJYP
########&&####&###&@&######&#####&&&&&&P55PPPP#GPP5P~. .:. ... ..... .. ~B#B##G??PP5P5B#&###BBBG?7?YPGGGPYJYP
########&#########&&&&#####&&####&&&&&&G5PP5PPBGPPPP?~:. . .7######G??GP5PPB&&##GBBBG?7?YPGGGPYJY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YYYYYYYYYYYYYYYYYYYYYY
YYYYYYYJJJJJJJJ?JYPGGGBBGGGY:^7J7^^^^JPB##GGB##&BPPPPG#########GG5!:. . .:.~#:!&B5YJ5J?77??7!^^^!P#BGPGBGBPY55555555555PPPPPPPPPPPPPPPP
YYYYYYYYYYJJJJJJJJJJYYY555557!YJ^^^^P#####BGB#&##GPPPPB#########B##G5!:. ... .7.^##5###BBGGBG5YJJJYPB&&#BGGBBGBP555555555PPPPPPPPPPPPPPPPPPP
55555YYYYYYJJJJJJJJJJJJJJ?JJYJPY!~~P&#####&BG###&BGPPPG###############B5!:............. ?BG##&P#&&&B#&&&&&&&&&&##&BGBBGBB55555555555555PPPPPPPPPPPPPPP
YYYYYYYYYYJJJJJJJJJJJJJJJJJJJYP5JJJ#&&&&####GB#&&#GGGPP###############BB#BY~............^~B###B#&&&B5&&&&&@&&&&###GB#BGBG?JJJJJJJJJJJJJJYYYYYYYYYYYYYY
JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJYYYP&@@@&&&&&#BB&&##GGPPB#############BGP5G##GY~:.:......:?##&B~?###&&&&&&&&@&&&#&BB##GBB#5JJJJJJJJJJJJJJJJJJJJJJJJJJJJ
JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJG@@@@@@@@@&&&BB#&#BGGGGB&&&&&&&#####BGGGP5G##BP7:.::::::G##G&P.~G###&&@&&&@@&&&&B#&#BB#&&GJ?JJJJJJJJJJJJJJJJJJJJJJJJJ
JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJB&&@@@@@@@@@@@&#BB#&BGGGG###&&&&&&&&#######B#####BJ~....:G##^G&J.:?G&##&&&&@@@&&##&&#BB#&&&GYJJJJJJJJJJJJJJJJJJJJJJJJJ
????????????????????????????J?JG&&&&&@@@@@@@@@@@&BB##GGGGB&&&&##&&&&&&&&############P?:.^###.~#&?.~~?#&#&&&&@@@&&&&&BB#&&&&BG5????????????????????????
??????????????????????????????P&&&&&&&&&&&&&&&&&&&&BBBGGBB&&&&&&&##&&&&&&&&#######&##&BJ7##5..5##7^7^^G&&&&&@@@&&&&&BB&&&B#&##5???????????????????????
*/
Compilation message
Main.cpp: In function 'int main()':
Main.cpp:101:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
101 | freopen(task".inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:102:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
102 | freopen(task".out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
4956 KB |
Output is correct |
2 |
Correct |
2 ms |
5060 KB |
Output is correct |
3 |
Correct |
2 ms |
4952 KB |
Output is correct |
4 |
Correct |
2 ms |
4956 KB |
Output is correct |
5 |
Correct |
3 ms |
4956 KB |
Output is correct |
6 |
Correct |
2 ms |
4952 KB |
Output is correct |
7 |
Correct |
2 ms |
4956 KB |
Output is correct |
8 |
Correct |
2 ms |
5160 KB |
Output is correct |
9 |
Correct |
2 ms |
4956 KB |
Output is correct |
10 |
Correct |
2 ms |
4956 KB |
Output is correct |
11 |
Correct |
3 ms |
4956 KB |
Output is correct |
12 |
Correct |
2 ms |
4956 KB |
Output is correct |
13 |
Correct |
2 ms |
4956 KB |
Output is correct |
14 |
Correct |
4 ms |
4956 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
205 ms |
28592 KB |
Output is correct |
2 |
Correct |
215 ms |
29264 KB |
Output is correct |
3 |
Correct |
178 ms |
16088 KB |
Output is correct |
4 |
Correct |
519 ms |
19288 KB |
Output is correct |
5 |
Correct |
545 ms |
18972 KB |
Output is correct |
6 |
Correct |
471 ms |
18772 KB |
Output is correct |
7 |
Correct |
452 ms |
17696 KB |
Output is correct |
8 |
Correct |
490 ms |
18296 KB |
Output is correct |
9 |
Correct |
486 ms |
18700 KB |
Output is correct |
10 |
Correct |
527 ms |
19028 KB |
Output is correct |
11 |
Correct |
422 ms |
20564 KB |
Output is correct |
12 |
Correct |
364 ms |
20564 KB |
Output is correct |
13 |
Correct |
405 ms |
22100 KB |
Output is correct |
14 |
Correct |
356 ms |
19024 KB |
Output is correct |
15 |
Correct |
347 ms |
18552 KB |
Output is correct |
16 |
Correct |
385 ms |
20088 KB |
Output is correct |
17 |
Correct |
353 ms |
19284 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
209 ms |
29780 KB |
Output is correct |
2 |
Correct |
181 ms |
33360 KB |
Output is correct |
3 |
Correct |
166 ms |
31908 KB |
Output is correct |
4 |
Correct |
163 ms |
31828 KB |
Output is correct |
5 |
Correct |
194 ms |
34828 KB |
Output is correct |
6 |
Correct |
223 ms |
34252 KB |
Output is correct |
7 |
Correct |
251 ms |
35280 KB |
Output is correct |
8 |
Correct |
214 ms |
33620 KB |
Output is correct |
9 |
Correct |
193 ms |
33364 KB |
Output is correct |
10 |
Correct |
249 ms |
32852 KB |
Output is correct |
11 |
Correct |
223 ms |
32076 KB |
Output is correct |
12 |
Correct |
236 ms |
35176 KB |
Output is correct |
13 |
Correct |
266 ms |
35268 KB |
Output is correct |
14 |
Correct |
253 ms |
34284 KB |
Output is correct |
15 |
Correct |
188 ms |
32336 KB |
Output is correct |
16 |
Correct |
204 ms |
31012 KB |
Output is correct |
17 |
Correct |
210 ms |
30800 KB |
Output is correct |
18 |
Correct |
196 ms |
32336 KB |
Output is correct |
19 |
Correct |
191 ms |
32716 KB |
Output is correct |
20 |
Correct |
204 ms |
33220 KB |
Output is correct |
21 |
Correct |
219 ms |
32464 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
4956 KB |
Output is correct |
2 |
Correct |
2 ms |
5060 KB |
Output is correct |
3 |
Correct |
2 ms |
4952 KB |
Output is correct |
4 |
Correct |
2 ms |
4956 KB |
Output is correct |
5 |
Correct |
3 ms |
4956 KB |
Output is correct |
6 |
Correct |
2 ms |
4952 KB |
Output is correct |
7 |
Correct |
2 ms |
4956 KB |
Output is correct |
8 |
Correct |
2 ms |
5160 KB |
Output is correct |
9 |
Correct |
2 ms |
4956 KB |
Output is correct |
10 |
Correct |
2 ms |
4956 KB |
Output is correct |
11 |
Correct |
3 ms |
4956 KB |
Output is correct |
12 |
Correct |
2 ms |
4956 KB |
Output is correct |
13 |
Correct |
2 ms |
4956 KB |
Output is correct |
14 |
Correct |
4 ms |
4956 KB |
Output is correct |
15 |
Correct |
205 ms |
28592 KB |
Output is correct |
16 |
Correct |
215 ms |
29264 KB |
Output is correct |
17 |
Correct |
178 ms |
16088 KB |
Output is correct |
18 |
Correct |
519 ms |
19288 KB |
Output is correct |
19 |
Correct |
545 ms |
18972 KB |
Output is correct |
20 |
Correct |
471 ms |
18772 KB |
Output is correct |
21 |
Correct |
452 ms |
17696 KB |
Output is correct |
22 |
Correct |
490 ms |
18296 KB |
Output is correct |
23 |
Correct |
486 ms |
18700 KB |
Output is correct |
24 |
Correct |
527 ms |
19028 KB |
Output is correct |
25 |
Correct |
422 ms |
20564 KB |
Output is correct |
26 |
Correct |
364 ms |
20564 KB |
Output is correct |
27 |
Correct |
405 ms |
22100 KB |
Output is correct |
28 |
Correct |
356 ms |
19024 KB |
Output is correct |
29 |
Correct |
347 ms |
18552 KB |
Output is correct |
30 |
Correct |
385 ms |
20088 KB |
Output is correct |
31 |
Correct |
353 ms |
19284 KB |
Output is correct |
32 |
Correct |
209 ms |
29780 KB |
Output is correct |
33 |
Correct |
181 ms |
33360 KB |
Output is correct |
34 |
Correct |
166 ms |
31908 KB |
Output is correct |
35 |
Correct |
163 ms |
31828 KB |
Output is correct |
36 |
Correct |
194 ms |
34828 KB |
Output is correct |
37 |
Correct |
223 ms |
34252 KB |
Output is correct |
38 |
Correct |
251 ms |
35280 KB |
Output is correct |
39 |
Correct |
214 ms |
33620 KB |
Output is correct |
40 |
Correct |
193 ms |
33364 KB |
Output is correct |
41 |
Correct |
249 ms |
32852 KB |
Output is correct |
42 |
Correct |
223 ms |
32076 KB |
Output is correct |
43 |
Correct |
236 ms |
35176 KB |
Output is correct |
44 |
Correct |
266 ms |
35268 KB |
Output is correct |
45 |
Correct |
253 ms |
34284 KB |
Output is correct |
46 |
Correct |
188 ms |
32336 KB |
Output is correct |
47 |
Correct |
204 ms |
31012 KB |
Output is correct |
48 |
Correct |
210 ms |
30800 KB |
Output is correct |
49 |
Correct |
196 ms |
32336 KB |
Output is correct |
50 |
Correct |
191 ms |
32716 KB |
Output is correct |
51 |
Correct |
204 ms |
33220 KB |
Output is correct |
52 |
Correct |
219 ms |
32464 KB |
Output is correct |
53 |
Correct |
477 ms |
19300 KB |
Output is correct |
54 |
Correct |
491 ms |
19736 KB |
Output is correct |
55 |
Correct |
522 ms |
20356 KB |
Output is correct |
56 |
Correct |
564 ms |
20072 KB |
Output is correct |
57 |
Correct |
532 ms |
20756 KB |
Output is correct |
58 |
Correct |
481 ms |
19280 KB |
Output is correct |
59 |
Correct |
521 ms |
21964 KB |
Output is correct |
60 |
Correct |
523 ms |
18768 KB |
Output is correct |
61 |
Correct |
447 ms |
17492 KB |
Output is correct |
62 |
Correct |
475 ms |
18488 KB |
Output is correct |
63 |
Correct |
573 ms |
18768 KB |
Output is correct |
64 |
Correct |
490 ms |
19916 KB |
Output is correct |
65 |
Correct |
494 ms |
19024 KB |
Output is correct |
66 |
Correct |
522 ms |
19620 KB |
Output is correct |
67 |
Correct |
465 ms |
18432 KB |
Output is correct |
68 |
Correct |
550 ms |
21444 KB |
Output is correct |
69 |
Correct |
203 ms |
33624 KB |
Output is correct |
70 |
Correct |
257 ms |
31572 KB |
Output is correct |
71 |
Correct |
243 ms |
34764 KB |
Output is correct |
72 |
Correct |
161 ms |
19648 KB |
Output is correct |
73 |
Correct |
199 ms |
18980 KB |
Output is correct |
74 |
Correct |
183 ms |
20664 KB |
Output is correct |
75 |
Correct |
371 ms |
20752 KB |
Output is correct |
76 |
Correct |
398 ms |
20308 KB |
Output is correct |
77 |
Correct |
417 ms |
20048 KB |
Output is correct |
78 |
Correct |
404 ms |
20028 KB |
Output is correct |