QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#262984#7738. Equivalent Rewritingucup-team922#WA 9ms56256kbC++201.9kb2023-11-24 13:48:562023-11-24 13:48:58

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 55620kb

input:

3
3 6
3 3 1 5
2 5 3
2 2 6
2 3
3 1 3 2
2 3 1
1 3
2 2 1

output:

Yes
1 3 2
No
No

result:

ok OK. (3 test cases)

Test #2:

score: 0
Accepted
time: 9ms
memory: 55936kb

input:

1
10 5
2 2 4
4 1 3 4 2
1 2
3 2 1 4
4 5 2 4 3
3 2 5 4
3 5 4 2
3 1 3 2
5 1 4 2 3 5
1 4

output:

Yes
7 6 5 8 2 4 3 1 9 10

result:

ok OK. (1 test case)

Test #3:

score: -100
Wrong Answer
time: 3ms
memory: 56256kb

input:

1
20 5
5 4 1 2 5 3
2 5 3
3 5 1 2
5 4 5 1 3 2
3 4 2 5
5 3 1 5 4 2
5 5 1 2 3 4
1 3
4 5 1 2 3
4 4 1 3 5
2 5 2
4 2 3 5 1
3 2 4 5
5 2 3 4 1 5
4 5 2 4 3
1 2
2 4 3
4 4 5 3 1
5 4 1 5 3 2
3 5 1 3

output:

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

result:

wrong answer two transactions are not equivalent. (test case 1)