QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#57860#2918. Tree Number GeneratorZhangYiDeWA 6ms11348kbC++113.1kb2022-10-23 15:00:242022-10-23 15:00:27

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 10360kb

input:

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

output:

0
0
0
0

result:

ok 4 lines

Test #2:

score: 0
Accepted
time: 6ms
memory: 10924kb

input:

3 10 5
1 2
2 3
0
0
0
1 3
3 1
2 2
2 3
2 1

output:

0
0
0
0
0

result:

ok 5 lines

Test #3:

score: -100
Wrong Answer
time: 0ms
memory: 11348kb

input:

2000 2 2000
937 1471
1672 937
356 1672
976 356
1257 356
1503 1257
783 1503
1783 937
1284 976
1955 1503
802 1257
583 1471
526 356
701 1783
393 1955
307 1955
386 1955
1070 937
1724 802
1397 1724
1140 937
422 526
1941 1955
1638 937
1469 526
1800 526
1035 1800
1009 1140
1195 1800
142 1471
1225 1469
1524...

output:

0
0
1
1
1
0
1
1
0
1
0
1
0
0
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
1
1
1
1
1
0
1
1
1
0
1
1
1
1
1
0
0
1
1
0
1
0
0
1
0
0
0
0
0
1
0
0
0
0
1
1
1
0
1
0
0
1
1
1
0
1
1
1
0
0
0
1
1
0
0
0
0
1
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
0
1
1
0
1
1
0
1
0
1
1
1
0
0
1
0
1
1
0
1
1
1
1
1
0
1
1
1
1
1
1
0
0
0
1
0
1
1
...

result:

wrong answer 2nd lines differ - expected: '1', found: '0'