QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#629796#7608. Cliquesucup-team4993WA 2ms22388kbC++176.8kb2024-10-11 14:55:242024-10-11 14:55:24

详细

Test #1:

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

input:

5
1 2
5 1
2 3
4 2
6
+ 4 5
+ 2 2
+ 1 3
- 2 2
+ 2 3
+ 4 4

output:

1
3
7
3
7
9

result:

ok 6 lines

Test #2:

score: -100
Wrong Answer
time: 2ms
memory: 22388kb

input:

20
8 7
19 10
12 14
3 16
17 13
7 10
5 6
1 9
15 12
5 2
16 13
3 11
20 14
18 6
1 14
16 20
11 10
3 4
20 6
30
+ 10 20
+ 14 20
+ 12 17
- 14 20
- 12 17
+ 4 6
+ 8 20
+ 3 6
- 10 20
+ 2 17
+ 1 16
+ 6 10
+ 9 10
+ 5 15
+ 7 8
- 7 8
+ 2 5
+ 3 18
+ 1 20
+ 8 16
- 3 18
- 5 15
+ 4 20
+ 14 16
- 4 6
+ 8 19
+ 4 7
- 1 16
...

output:

1
3
7
500000007
750000007
750000009
750000013
750000021
250000010
750000022
500000038
500000072
138
277
279
277
281
553
1103
1359
687
407
807
1613
813
829
909
500000507
500000785
500000401

result:

wrong answer 4th lines differ - expected: '3', found: '500000007'