QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#401628#943. Dynamic Diameternhuang685#11 142ms3860kbC++201.8kb2024-04-29 04:48:392024-04-29 04:48:39

Judging History

This is the latest submission verdict.

  • [2024-04-29 04:48:39]
  • Judged
  • Verdict: 11
  • Time: 142ms
  • Memory: 3860kb
  • [2024-04-29 04:48:39]
  • Submitted

answer

#include <bits/stdc++.h>

struct Edge {
  int a, b;
  int64_t c;
};
void solve1(int n, int q, int64_t w) {
  std::vector<Edge> e;
  std::vector<std::vector<std::pair<int64_t, int>>> adj(n);
  for (int i = 0; i < n - 1; ++i) {
    int a, b;
    int64_t c;
    std::cin >> a >> b >> c;
    a--;
    b--;
    adj[a].emplace_back(c, b);
    adj[b].emplace_back(c, a);
    e.push_back(Edge{a, b, c});
  }
  auto modify = [&](int d, int64_t c) {
    auto [a, b, _] = e[d];
    for (auto &[cost, i] : adj[a]) {
      if (i == b) {
        cost = c;
        break;
      }
    }
    for (auto &[cost, i] : adj[b]) {
      if (i == a) {
        cost = c;
        break;
      }
    }
  };
  auto diam = [&](auto &self, int node,
                  int par) -> std::pair<int64_t, int64_t> {
    int64_t ans = 0;
    std::set<int64_t, std::greater<int64_t>> s;
    for (auto [cost, i] : adj[node]) {
      if (i == par) {
        continue;
      }
      auto [d, t] = self(self, i, node);
      t += cost;
      ans = std::max(ans, d);
      s.insert(t);
    }
    int64_t ans2 = 0;
    if (!s.empty()) {
      ans2 += *s.begin();
    }
    if (s.size() >= 2) {
      ans2 += *std::next(s.begin());
    }
    return {std::max(ans, ans2), s.empty() ? 0 : *s.begin()};
  };
  int64_t last = 0;
  while (q--) {
    int d;
    int64_t c;
    std::cin >> d >> c;
    d = (d + last) % (n - 1);
    c = (c + last) % w;
    modify(d, c);
    last = diam(diam, 0, -1).first;
    std::cout << last << '\n';
  }
}
void solve2(int n, int q,
            std::vector<std::vector<std::pair<int64_t, int>>> &adj) {}

int main() {
  std::cin.tie(nullptr)->sync_with_stdio(false);

  int n, q;
  int64_t w;
  std::cin >> n >> q >> w;
  solve1(n, q, w);
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 11
Accepted

Test #1:

score: 11
Accepted
time: 0ms
memory: 3608kb

input:

10 100 10000
3 4 115
4 7 2757
1 5 5809
8 5 1111
6 2 7043
6 5 4932
6 4 4171
9 5 8499
10 5 2395
1 3517
8 7196
1 8064
6 7437
6 2421
8 67
7 6695
3 1217
1 920
1 1786
4 2541
5 266
4 6167
0 7590
6 195
8 4087
2 8073
6 8065
5 2882
2 3292
4 3435
6 8447
8 3419
0 9545
1 7922
0 4088
8 2546
4 7071
1 722
6 9178
0 ...

output:

21119
21746
23057
18619
18309
18309
19479
18309
19533
18309
18186
18262
19939
21768
20410
22382
20410
21356
17833
17119
13244
7187
4529
6469
8465
8524
9139
10958
11513
9377
9567
8338
8034
5923
5027
2900
2285
2068
1882
1945
2775
4745
4710
5813
7516
5813
4710
5561
6651
8019
9192
9658
8822
7818
5647
53...

result:

ok 100 lines

Test #2:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

10 100 10000
8 7 2340
2 10 9672
6 5 9321
1 6 9967
3 5 8730
4 10 4620
10 6 900
10 7 2895
9 2 7152
8 7809
1 4950
5 3314
5 9980
6 8652
3 2942
3 338
5 4557
6 7854
8 3297
0 9281
5 9232
4 2377
2 4401
3 4652
2 2762
3 6834
6 3389
4 607
8 8284
7 6218
3 3302
5 3090
8 2079
4 3037
4 4930
5 5958
4 84
0 3857
8 59...

output:

36432
28142
20868
20058
18801
14426
16311
12355
11108
11146
11364
10508
11053
12134
13140
14015
13009
14495
15263
15915
15878
17829
15878
17474
16054
15179
10412
6369
6063
6072
6459
4415
3651
3015
4299
6167
6341
6167
4883
5822
4147
4257
4463
5892
5721
6873
8363
8563
7350
7756
9549
9912
10909
11354
1...

result:

ok 100 lines

Test #3:

score: 0
Accepted
time: 0ms
memory: 3624kb

input:

10 100 10000
10 6 2079
3 7 9297
1 8 1844
1 10 3876
2 4 724
8 4 3142
9 8 5216
1 3 6365
6 5 5438
1 1163
5 1574
5 8933
8 8149
0 3315
1 8759
1 6558
8 7394
7 3293
8 5470
1 1788
3 8267
6 6687
5 4364
6 6339
2 2195
0 9902
1 1019
0 3513
5 3767
2 6228
6 9386
4 3821
2 8993
0 8216
7 223
8 6353
3 65
8 3806
0 339...

output:

18921
14588
16035
17077
14588
15246
15887
17364
14778
14531
15634
17400
18140
18798
19401
20749
19689
18983
19635
20541
21642
17533
16432
17770
18791
20465
21738
20064
20532
22154
23160
24201
25014
24713
23160
18870
19720
18870
13988
13153
10485
6955
8417
8952
8417
6052
5468
6827
5468
4827
3817
2131...

result:

ok 100 lines

Test #4:

score: 0
Accepted
time: 0ms
memory: 3560kb

input:

10 100 10000
10 4 7087
4 2 6092
1 10 1280
6 10 3436
7 5 7207
3 10 9966
5 3 7222
7 9 2626
8 5 64
3 8102
7 1602
7 1354
3 4207
3 1091
4 9901
2 773
8 4623
6 5147
5 859
1 4062
7 176
6 6025
3 1580
1 3667
2 1116
4 2586
8 3652
7 6522
8 6644
1 6759
4 7015
3 7560
0 255
1 7252
4 6105
0 7220
0 7925
6 8215
8 851...

output:

40200
34795
36516
30017
21281
16082
16139
16082
16203
17116
14482
14712
9086
8324
9133
7660
6677
4380
3480
3358
3089
2470
2171
3586
4300
2885
2152
1878
1598
1280
1201
1036
704
886
2002
3439
4198
3449
3457
3529
4211
5623
6794
5415
3760
5497
3833
3063
5055
4780
3558
3421
5321
7024
5321
5732
7201
8503
...

result:

ok 100 lines

Test #5:

score: 0
Accepted
time: 0ms
memory: 3844kb

input:

10 100 10000
7 2 9990
7 4 2933
6 9 131
2 5 4180
10 8 6036
2 10 8488
6 1 4703
8 3 6095
10 9 4297
0 1000
3 2262
2 7136
2 3590
4 3067
5 6332
8 1725
2 7171
2 235
8 7936
6 4285
1 6527
0 8091
6 9291
0 7002
4 6236
3 8768
3 5378
5 569
8 7107
8 7489
7 8198
3 807
0 4058
1 8692
2 5076
6 6283
1 7531
3 7509
2 43...

output:

24799
25765
27419
23453
24139
22053
23554
22868
23038
23541
25363
23475
21653
14206
14109
11351
10526
12133
13861
12713
12181
10670
6243
3842
5155
3842
3848
4926
5982
4875
5298
4875
3049
5025
4963
5560
7171
5686
5867
4633
4654
5642
4615
3146
2109
3966
4941
6460
7078
8396
7078
8496
7078
8820
7078
730...

result:

ok 100 lines

Test #6:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

10 100 10000
8 6 7957
2 5 5987
3 4 5488
1 7 8065
1 10 3293
8 7 8749
5 9 4304
6 2 5044
3 9 8563
6 5249
7 9130
4 5387
8 9525
0 4056
2 8845
6 5697
7 8725
5 890
4 4993
6 9360
5 4084
2 6375
8 4887
5 4499
3 1805
6 6743
3 7695
0 5857
4 6049
0 3692
0 8853
8 6096
1 825
8 1736
3 9910
0 6311
5 8424
8 153
6 259...

output:

58395
59933
60004
61576
62164
55108
50281
50538
43403
42270
42891
44378
37606
38469
40009
41018
41804
43542
44545
42171
42714
34882
29997
30066
22862
23832
22408
20747
20825
21477
19845
16992
9393
9919
11716
12657
12208
11394
12034
9655
10980
11366
13039
13942
9929
7869
8222
7490
7268
9211
10641
106...

result:

ok 100 lines

Test #7:

score: 0
Accepted
time: 1ms
memory: 3556kb

input:

50 100 10000
1 8 6341
24 13 9970
49 33 8948
8 4 7841
37 20 8622
14 20 9574
1 46 1759
3 48 9588
41 42 3168
47 34 541
20 22 7825
15 21 2424
9 20 6679
42 15 9261
23 1 31
49 15 1996
45 16 1249
44 32 9036
22 15 2694
23 30 8009
27 9 7800
19 11 6125
20 38 6891
28 39 5247
16 3 8141
32 7 8846
5 23 8802
33 31...

output:

59373
57016
56924
57577
53308
53308
48777
46985
46985
43203
43203
43203
42550
42550
43083
43083
43083
42620
42550
42550
43143
42550
42337
42341
42316
41873
41873
41007
39527
39527
38947
40534
37801
37290
35302
35167
35011
33876
33445
34000
33445
35412
35412
36991
36991
31048
29469
28542
26975
26886
...

result:

ok 100 lines

Test #8:

score: 0
Accepted
time: 1ms
memory: 3560kb

input:

50 100 10000
14 36 8043
38 22 6480
20 31 8990
5 24 2043
18 9 2214
26 38 8713
41 23 6057
5 31 903
49 42 517
26 33 1587
37 42 4755
39 11 8913
41 33 6066
4 46 6565
2 50 8961
23 40 378
12 48 5060
23 44 7471
30 38 7648
1 50 1632
21 36 5084
46 8 5537
45 38 342
4 40 1009
29 30 6257
5 25 1758
7 9 7620
32 5 ...

output:

65340
65340
65340
63827
63377
63198
60867
60867
58144
55446
55044
49538
45973
45478
45155
44979
36810
36810
36734
36765
37640
36734
36734
36734
36655
37757
37757
36705
36895
36895
36376
36376
31986
30519
29916
30980
32184
30980
30980
32498
30980
30980
32351
32290
30600
29229
30974
30937
30814
29761
...

result:

ok 100 lines

Test #9:

score: 0
Accepted
time: 1ms
memory: 3560kb

input:

50 100 10000
29 17 2564
39 21 1298
14 5 9449
2 21 1199
38 41 6753
40 41 8801
29 26 8632
8 47 3255
29 16 4295
49 12 8311
23 1 8208
29 38 3352
21 33 1428
38 48 8213
9 43 3270
25 35 6960
48 39 609
4 13 6052
22 27 5805
7 30 5559
43 42 4831
15 7 8844
41 34 2125
25 38 7617
44 29 9650
47 34 4943
37 24 3401...

output:

61183
61183
61183
61183
61183
58904
59303
59625
59979
59979
57513
57513
55189
52099
52606
53986
54067
54067
54683
52796
53860
51883
49202
49202
49202
48586
47093
48598
50425
52022
51509
49667
47720
48342
48342
48342
48180
47558
47558
41557
41673
41673
38432
38432
35747
36780
37433
37509
36004
35102
...

result:

ok 100 lines

Test #10:

score: 0
Accepted
time: 1ms
memory: 3500kb

input:

50 100 10000
23 35 3588
8 14 6083
47 40 8627
48 11 1180
44 11 9818
25 45 5998
32 30 5129
33 5 9875
21 49 512
4 38 6261
1 2 8102
44 7 1612
48 30 2053
10 45 3855
38 40 7901
23 18 6194
4 1 1904
19 2 5487
37 11 1684
5 43 1668
17 13 2225
18 21 1117
50 40 6657
27 2 8189
36 16 5219
40 22 1664
25 24 6901
2 ...

output:

63266
63266
63266
63613
63266
60588
60823
57775
55943
53775
54216
54663
54092
54092
54451
54451
53563
53563
51577
53432
51087
50927
50927
49028
49028
49028
48674
48674
46750
46589
46589
47900
46589
46589
47547
48656
49278
50809
51360
51819
51268
47812
47124
44835
45416
43249
40132
42119
42119
41915
...

result:

ok 100 lines

Test #11:

score: 0
Accepted
time: 1ms
memory: 3624kb

input:

50 100 10000
8 33 8108
31 27 7736
45 25 5415
45 26 4388
24 44 4358
43 24 6086
5 8 488
27 1 2228
12 23 4290
29 40 2986
44 46 5607
26 41 6049
11 42 3363
39 42 1451
33 50 9045
49 23 5941
1 40 3401
23 2 6852
16 24 9840
45 32 8760
19 8 8300
47 7 1261
5 17 8440
6 1 7962
47 33 8611
32 5 797
28 50 6352
21 3...

output:

95490
89008
89991
89991
89287
81988
81005
74056
67874
67188
68488
68488
69849
67552
66383
63536
64540
64839
64540
65813
63546
63549
62273
62273
63333
62005
62005
56528
58067
56865
58360
55001
55001
50551
50551
48293
48090
48637
40508
38884
39212
39414
38867
38867
40031
39703
39703
38334
37839
37663
...

result:

ok 100 lines

Test #12:

score: 0
Accepted
time: 1ms
memory: 3560kb

input:

50 100 10000
47 30 8790
7 25 798
36 2 4178
6 1 7230
37 28 4944
46 31 6454
42 19 4628
2 3 575
37 8 501
48 50 5485
18 40 7526
49 12 1225
1 38 7968
16 21 3693
19 22 9021
15 20 477
29 24 8580
9 20 6301
31 45 4936
44 4 1556
38 25 9065
5 33 2779
39 14 2783
9 39 3551
26 48 9837
32 26 8413
36 8 3085
35 15 7...

output:

238816
230759
231869
233233
234267
234462
236311
237391
230870
232761
226894
218012
210534
211196
204159
205164
206494
206617
207073
203120
197476
191757
192067
193574
190918
191250
193069
188162
189303
182859
184239
179090
180694
181787
179143
179312
172449
165832
163911
157687
158272
149807
141376...

result:

ok 100 lines

Test #13:

score: 0
Accepted
time: 1ms
memory: 3628kb

input:

100 100 10000
61 46 59
68 17 1088
35 99 9
66 81 530
76 5 2805
29 20 1912
22 25 8237
8 72 7557
29 53 4647
100 65 5747
18 63 2645
62 68 9971
29 41 6386
85 29 9987
40 37 4983
25 48 6284
9 13 2890
74 60 3011
38 15 9519
84 83 9063
72 26 7027
20 42 6734
14 33 1615
100 84 8907
38 98 5026
11 84 9389
38 54 5...

output:

67064
67064
68098
66515
60155
60687
60687
59475
59470
60112
60112
55506
55506
55506
54429
53890
53345
53345
53450
53450
53450
53450
53450
54974
54778
51173
51917
51917
49375
51099
49375
48174
47430
47819
46427
46294
46294
45854
45755
47068
46096
46096
45990
40425
39843
41085
40521
39279
39279
39712
...

result:

ok 100 lines

Test #14:

score: 0
Accepted
time: 1ms
memory: 3564kb

input:

100 100 10000
26 76 4133
40 44 8072
10 72 8851
75 74 1662
55 68 7054
76 35 8429
25 88 7343
82 68 9352
3 99 9320
90 12 5811
70 69 771
38 11 8024
100 98 9522
81 24 6184
51 92 454
31 89 1490
67 68 4980
88 91 4639
4 51 1134
83 56 2659
73 58 6010
68 1 2206
36 58 3853
21 35 1228
14 6 7321
91 77 7493
8 60 ...

output:

72732
70065
70509
70065
67886
65897
65796
64035
64035
61803
61941
61803
61803
61803
61803
60515
60515
56756
55601
55244
53355
51745
51544
51596
51544
50919
50255
50255
51970
52342
51970
51970
51494
49115
49674
49674
49674
49115
50267
51627
48009
45785
46361
45642
45152
45152
45609
45609
47348
47348
...

result:

ok 100 lines

Test #15:

score: 0
Accepted
time: 1ms
memory: 3600kb

input:

100 100 10000
90 9 4002
14 12 6088
49 37 6540
42 82 4492
45 26 6755
39 71 2749
52 31 9121
16 91 7670
69 81 1294
52 57 839
62 78 6551
20 85 5721
54 4 3361
53 96 1197
6 37 9230
89 11 4113
59 33 8247
7 69 158
64 57 3585
94 6 1392
66 6 4702
85 11 9207
71 61 4590
58 17 540
66 56 3054
81 77 222
81 95 9456...

output:

91841
83535
78275
74063
73998
73998
73271
73091
73067
70590
70590
70590
70590
68753
68753
60021
56298
57074
57787
58470
58095
59455
58095
58095
56636
56636
56636
55200
56995
56995
58400
58400
58400
55360
53287
55195
56009
56009
56009
55825
55825
56326
58032
56326
55825
57594
55825
55825
56299
56299
...

result:

ok 100 lines

Test #16:

score: 0
Accepted
time: 1ms
memory: 3628kb

input:

100 100 10000
92 93 7615
42 98 1357
70 55 1976
19 13 8638
54 11 1383
9 77 3292
7 56 9011
3 85 7376
59 75 5769
67 2 6967
5 9 2540
80 4 6902
57 90 6087
29 8 7017
49 83 2157
28 12 131
45 17 8644
72 45 2764
26 30 13
29 36 7727
28 16 6818
23 26 7000
43 94 7223
72 33 8545
100 87 6232
54 39 3305
36 62 9880...

output:

88621
86102
80364
75016
75016
75232
75232
76458
76458
76458
76458
73584
73584
71627
71415
68686
68686
68363
68734
69433
65213
65213
62047
61676
59310
59106
59493
58982
58595
60004
58595
59419
58595
60108
59055
56053
54540
50387
49992
48679
50114
50114
50114
50114
51380
51828
50077
50077
50058
48948
...

result:

ok 100 lines

Test #17:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

100 100 10000
19 26 1536
85 56 9371
14 39 5613
32 82 7798
71 3 3868
68 1 4447
85 62 7625
80 12 9746
68 23 4958
41 47 8831
53 25 5536
94 40 4598
75 49 6761
55 92 2029
42 69 934
35 7 5539
91 7 5963
22 65 1447
89 60 5248
21 84 6460
91 6 2347
76 88 6279
82 59 5177
49 57 4692
49 76 2852
71 46 2869
86 63 ...

output:

208612
201077
198582
198582
199864
194192
194192
194192
190022
190022
185574
180889
181928
180986
181866
181866
181866
181866
181866
175063
175729
172365
169399
169399
169399
169399
170172
166385
167243
167243
159394
155158
155659
147284
139152
135701
131742
130957
130957
128260
120349
115491
114864...

result:

ok 100 lines

Test #18:

score: 0
Accepted
time: 1ms
memory: 3604kb

input:

100 100 10000
24 12 9297
78 40 7121
35 37 2272
11 45 8083
41 47 9047
49 10 654
62 79 708
86 89 4880
94 95 7215
73 7 6235
15 52 7117
42 70 6983
100 80 8304
92 99 658
72 51 5005
39 19 9178
70 25 1106
5 62 327
16 69 5998
80 15 2986
31 1 1817
22 68 1184
81 50 7427
47 71 6537
28 86 6754
17 91 944
65 25 9...

output:

469366
464225
464020
458417
459843
454980
449438
449836
450811
443374
445256
447049
447320
448664
450613
443925
437069
431483
431612
426901
421627
412880
411253
412135
413487
414011
414578
414683
415435
415698
415886
413640
414380
416346
417861
408790
408111
402662
402780
404244
405877
401314
401655...

result:

ok 100 lines

Subtask #2:

score: 0
Wrong Answer

Dependency #1:

100%
Accepted

Test #19:

score: 0
Wrong Answer
time: 142ms
memory: 3720kb

input:

1000 5000 10000
69 162 9125
754 571 3839
370 417 1897
43 6 5179
470 808 4807
488 100 464
65 808 821
962 340 197
886 736 9712
692 808 9775
794 712 160
120 32 2229
15 829 5889
932 174 2327
995 833 8691
452 628 2146
52 336 5777
24 235 3472
508 973 5060
431 537 4485
738 746 5757
761 609 3687
956 391 654...

output:

153826
150298
145424
143019
143019
142930
142484
142349
140965
140965
140965
140912
140912
138310
138310
138310
132967
128421
122670
122277
119897
115547
115547
113138
113011
112481
112481
112481
112481
112481
112481
112194
112194
110289
107027
106281
105633
105846
105094
104881
104881
103103
102708...

result:

wrong answer 1298th lines differ - expected: '35394', found: '35297'

Subtask #3:

score: 0
Wrong Answer

Test #27:

score: 7
Accepted
time: 0ms
memory: 3860kb

input:

20 20 10000
1 2 835
1 3 57
1 4 1883
1 5 1349
1 6 1543
1 7 688
1 8 272
1 9 744
1 10 569
1 11 1019
1 12 201
1 13 1228
1 14 1194
1 15 1123
1 16 48
1 17 164
1 18 893
1 19 963
1 20 818
6 1
0 7412
10 6575
15 6696
0 7412
4 8318
18 7563
15 7502
1 7668
13 7859
14 8045
2 7969
12 8159
11 8040
2 8168
12 8192
0 ...

output:

3426
3426
3426
2892
2577
2577
2543
2472
2142
2142
2086
2018
1961
1961
1958
1653
1562
1432
1432
1064

result:

ok 20 lines

Test #28:

score: -7
Wrong Answer
time: 1ms
memory: 3816kb

input:

20 200 10000
1 2 17
1 3 373
1 4 255
1 5 1243
1 6 468
1 7 1594
1 8 1375
1 9 383
1 10 36
1 11 1961
1 12 1816
1 13 1744
1 14 1611
1 15 1619
1 16 1620
1 17 144
1 18 1444
1 19 1129
1 20 1812
12 1
14 6239
16 6351
13 6228
17 6447
15 6815
10 6637
9 6762
4 6885
9 7217
18 7229
14 7381
8 7459
1 8746
18 9031
7 ...

output:

3777
3773
3773
3773
3556
3364
3239
3239
3064
2819
2687
2573
1597
1597
1757
1757
1096
851
756
776
776
776
1339
1339
776
759
759
746
746
746
624
501
416
364
805
364
270
189
112
111
107
107
1021
1620
1620
1190
360
191
121
107
103
78
172
77
588
791
588
948
509
166
729
863
1314
863
1228
863
863
774
762
7...

result:

wrong answer 117th lines differ - expected: '54', found: '51'

Subtask #4:

score: 0
Wrong Answer

Test #48:

score: 0
Wrong Answer
time: 28ms
memory: 3656kb

input:

1000 1000 10000
1 2 503
1 3 889
2 4 6
2 5 1468
3 6 102
3 7 464
4 8 658
4 9 1642
5 10 1956
5 11 420
6 12 1287
6 13 1051
7 14 48
7 15 678
8 16 1662
8 17 906
9 18 432
9 19 124
10 20 71
10 21 1624
11 22 268
11 23 1776
12 24 404
12 25 967
13 26 658
13 27 815
14 28 1196
14 29 1920
15 30 865
15 31 1227
16 ...

output:

24077
24129
24073
24255
24248
24175
24175
24175
23680
22461
22205
21721
21721
21710
21624
21372
21320
21300
21300
21300
21266
21204
21067
19844
19844
19607
20014
19601
19515
19261
19244
19191
19166
19166
19107
19107
19107
19074
19074
19071
19071
19071
19082
19071
19013
18375
18200
19061
19061
19061
...

result:

wrong answer 568th lines differ - expected: '16074', found: '15511'

Subtask #5:

score: 0
Time Limit Exceeded

Test #65:

score: 0
Time Limit Exceeded

input:

100000 100000 20000000000000
36784 60773 140153248
61611 56014 4384507
39699 81699 3960320
64081 33880 136970044
38189 43550 67958946
16177 77482 151567728
90206 77109 108497900
42376 92541 75503161
10148 21587 195080992
11109 80580 11975495
8506 81405 144971319
85501 69547 59675956
72008 46890 3423...

output:

20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
20075213641185
...

result:


Subtask #6:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%