QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#875410#7861. Inverse Topological Sortucup-team1494#WA 1ms5844kbC++204.6kb2025-01-29 18:09:402025-01-29 18:09:40

詳細信息

Test #1:

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

input:

3
1 2 3
1 2 3

output:

Yes
2
1 2
2 3

result:

ok n=3

Test #2:

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

input:

3
1 2 3
3 2 1

output:

Yes
0

result:

ok n=3

Test #3:

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

input:

3
3 2 1
1 2 3

output:

No

result:

ok n=3

Test #4:

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

input:

10
6 8 9 4 1 3 7 5 10 2
8 6 9 10 4 7 5 3 2 1

output:

Yes
14
3 2
4 1
4 7
4 3
5 2
6 9
6 3
7 5
8 9
8 3
9 4
9 10
9 3
10 2

result:

ok n=10

Test #5:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

10
4 2 5 6 7 8 9 1 3 10
8 7 9 6 5 4 2 1 10 3

output:

Yes
8
1 3
1 10
4 2
6 1
7 9
7 1
8 1
9 1

result:

ok n=10

Test #6:

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

input:

100
5 16 25 26 36 28 42 46 2 38 48 23 29 30 31 12 40 51 58 64 71 75 83 14 68 74 79 84 86 88 56 6 39 92 9 11 4 47 3 13 15 8 49 54 32 45 61 33 66 72 80 24 69 89 21 82 93 94 27 76 90 10 18 77 78 57 95 7 50 81 96 97 35 19 44 20 55 63 34 60 67 22 73 52 87 91 65 43 85 37 62 53 98 1 41 70 99 59 100 17
92 8...

output:

No

result:

wrong answer Jury has the answer but participant has not