QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#786433#7040. Connected SubgraphsAdorableTL 2ms9836kbC++2310.2kb2024-11-26 21:30:002024-11-26 21:30:01

詳細信息

Test #1:

score: 100
Accepted
time: 2ms
memory: 9836kb

input:

2
4 4
1 2
2 3
3 4
4 1
4 6
1 2
1 3
1 4
2 3
2 4
3 4

output:

1
15

result:

ok 2 lines

Test #2:

score: -100
Time Limit Exceeded

input:

10
3296 174079
484 736
80 3275
914 1609
611 2069
1111 3027
749 1443
568 1878
1180 2788
1072 2156
171 797
106 1226
1749 2331
758 3080
772 2017
1381 2393
1945 2943
269 1431
1640 1805
1924 2161
1720 2123
1551 2940
286 1226
460 1462
1807 1823
40 638
18 707
589 849
1857 1987
914 2360
2446 3129
24 910
113...

output:

192810800
284251171
771081766
673113026
227774506
23760227
44050220
47307815

result: