QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#464772#4521. Tree Stands / ElvesHuangHanSheng AC ✓232ms4120kbC++201.6kb2024-07-06 14:47:122024-07-06 14:47:13

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 232ms
memory: 4120kb

input:

11 4
1 2
1 3
1 4
1 5
1 6
6 7
6 8
6 9
6 10
6 11
11 3
1 2
1 3
1 4
1 5
1 6
6 7
6 8
6 9
6 10
6 11
11 2
1 2
1 3
1 4
1 5
1 6
6 7
6 8
6 9
6 10
6 11
10 4
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
10 3
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
10 2
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
10 3
1 2
2 3
3 4
4 5
5 6
6 7
7 8
...

output:

50
25
10
84
36
9
8
9
681
1861
28
521982816
12
287
12671723
71083134
1073998
469659
34780802
35183185
549035096
869853263
492215283
518028424
962794779
758236573
767100622
7414258
957732405
541121967
348779713
878892216
35901819
356220475
472512270
680410564
348061126
927333188
654346363
425320598
84...

result:

ok 11936 lines