QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#338092#4000. Dynamic ReachabilitydXqwqTL 0ms7684kbC++232.3kb2024-02-25 17:42:312024-02-25 17:42:31

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 7684kb

input:

5 6 7
1 2
1 3
2 4
3 4
3 5
4 5
2 1 5
2 2 3
1 3
1 4
2 1 4
1 3
2 1 5

output:

YES
NO
NO
YES

result:

ok 4 lines

Test #2:

score: -100
Time Limit Exceeded

input:

50000 100000 100000
36671 44121
25592 44321
13226 46463
13060 25694
14021 20087
22881 38333
34655 47774
22868 26462
31154 48710
27491 32365
5874 47497
17622 28600
1886 14193
22315 23656
14973 22704
1335 25384
22612 34915
2852 48213
23334 25519
24342 28784
6238 36125
14598 39494
33069 34250
2123 3059...

output:


result: