QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#264232#4934. Forbidden CardZhangYiDeWA 16ms68440kbC++203.0kb2023-11-25 13:22:492023-11-25 13:22:50

詳細信息

Test #1:

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

input:

3 6
1 2
2 4
4 2

output:

3
0
3

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 12ms
memory: 60732kb

input:

4 10
1 5
2 6
3 7
4 8

output:

4
2
2
2

result:

ok 4 lines

Test #3:

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

input:

1 2
1 2

output:

2

result:

ok single line: '2'

Test #4:

score: -100
Wrong Answer
time: 16ms
memory: 68440kb

input:

69332 250102
51362 228823
206751 31351
181790 44202
186695 92215
172072 173179
86663 76959
42382 25827
204750 30001
42502 11959
201030 71886
227497 216114
164282 235028
178967 181951
125356 20611
169528 174071
50985 175562
63676 208400
189134 229462
49746 131529
180236 247427
29278 229589
30381 4412...

output:

180770
1
1
1
1
1
0
1
0
1
0
0
1
0
1
1
0
1
1
1
1
1
1
1
1
0
1
1
1
1
1
1
1
1
1
0
1
1
1
0
1
1
1
1
0
1
1
1
1
0
1
1
1
1
1
1
1
0
1
0
1
0
0
1
1
1
1
1
1
1
1
1
0
1
0
1
1
1
1
1
1
1
0
1
1
1
0
0
1
1
1
1
1
1
1
1
0
1
1
0
0
0
0
1
1
1
1
0
0
0
1
1
1
0
1
1
1
0
1
0
0
1
0
1
0
1
1
0
1
1
0
1
1
1
0
0
0
1
1
1
0
0
1
1
1
1
0
0...

result:

wrong answer 1st lines differ - expected: '197458', found: '180770'