QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#438136 | #6502. Disjoint Set Union | egypt_ioi2024_02 | WA | 261ms | 3728kb | C++20 | 2.9kb | 2024-06-10 10:19:58 | 2024-06-10 10:19:58 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3708kb
input:
5 3 1 2 3 2 2 3 4 1 2 3 3 1 1 1 2 5 1 2 3 4 5 2 3 4 5 5 5 1 1 1 1 1 1 2 3 4 5 6 1 2 2 4 5 6 1 1 5 1 4 2
output:
YES 1 2 1 2 YES 4 2 3 2 1 4 2 2 1 1 3 YES 4 2 1 2 2 2 3 2 3 4 2 4 5 NO YES 7 2 6 2 2 2 5 1 3 2 5 4 1 2 2 4 1 1 2
result:
ok good! (YES count = 4, NO count = 1) (5 test cases)
Test #2:
score: 0
Accepted
time: 151ms
memory: 3664kb
input:
100000 5 1 2 1 1 1 2 2 1 1 2 5 3 2 3 4 1 3 2 3 4 1 5 1 2 3 4 3 1 4 4 1 1 5 1 2 3 5 3 1 2 2 5 2 5 5 2 3 5 5 5 2 3 5 5 5 1 2 3 4 5 5 3 3 4 5 5 1 2 3 4 5 1 4 1 4 4 5 1 2 3 1 5 1 2 3 1 2 5 1 2 3 3 1 1 3 3 3 1 5 1 2 3 4 3 2 2 4 4 4 5 1 2 2 4 5 5 2 2 4 5 5 1 2 1 4 5 5 2 5 5 5 5 1 2 3 4 5 1 2 5 5 1 5 1 4 3...
output:
YES 2 2 1 2 1 5 YES 0 YES 5 2 3 4 1 5 2 2 4 2 4 1 1 5 YES 2 2 3 2 1 5 YES 0 YES 2 2 2 3 2 1 5 YES 3 2 5 4 2 3 1 2 2 4 YES 1 2 5 2 YES 1 2 2 3 YES 3 2 3 4 1 5 2 1 2 YES 1 2 1 5 YES 3 2 4 5 2 1 5 1 3 YES 3 2 4 5 2 3 5 2 5 1 YES 5 2 4 3 1 2 2 3 1 1 2 1 5 YES 4 2 3 5 2 2 5 2 1 5 1 4 YES 4 2 4 1 1 5 2 3 ...
result:
ok good! (YES count = 100000, NO count = 0) (100000 test cases)
Test #3:
score: 0
Accepted
time: 261ms
memory: 3728kb
input:
50000 10 1 2 3 4 5 6 7 8 6 10 1 10 3 4 5 6 7 8 6 10 10 6 2 3 4 5 6 2 5 5 10 6 6 6 6 6 6 6 6 6 10 10 1 2 3 4 7 7 7 10 9 10 9 7 3 9 9 9 9 9 9 7 10 1 2 3 7 4 2 3 8 3 10 2 2 2 2 2 2 2 2 2 2 10 1 2 3 5 5 8 2 8 9 10 2 2 3 5 10 8 2 10 9 10 10 1 8 3 3 5 6 10 8 9 10 5 5 5 5 5 5 5 5 5 5 10 8 2 7 4 5 6 8 8 9 1...
output:
YES 1 2 2 10 YES 7 2 5 6 1 8 1 9 2 4 6 2 3 6 2 2 6 1 7 YES 9 2 10 7 1 8 2 2 7 2 7 9 1 5 1 6 1 8 2 4 9 2 1 9 YES 10 1 4 1 5 2 10 2 2 8 2 2 3 2 1 4 1 5 1 7 1 9 2 1 2 YES 3 2 8 10 2 5 10 2 1 2 YES 9 2 10 5 1 7 2 9 5 2 8 5 1 2 2 6 5 2 3 5 1 4 2 1 5 YES 12 1 3 2 8 4 1 1 1 3 1 7 2 2 6 2 9 10 2 6 10 2 4 10...
result:
ok good! (YES count = 50000, NO count = 0) (50000 test cases)
Test #4:
score: -100
Wrong Answer
time: 160ms
memory: 3728kb
input:
12500 20 9 2 3 4 5 6 7 8 9 10 11 9 13 14 19 19 17 18 19 20 8 2 3 6 4 6 7 18 18 10 3 8 6 4 19 4 4 4 4 20 20 6 2 3 4 6 15 7 8 9 10 11 12 13 14 15 20 17 18 19 20 12 12 2 8 12 12 7 12 9 12 11 12 13 14 12 8 8 9 8 8 20 5 2 3 4 5 20 7 8 9 10 11 10 13 14 20 16 10 18 19 9 19 19 4 4 19 3 14 8 3 4 3 4 3 14 3 1...
output:
YES 14 2 9 8 1 1 1 12 2 8 18 1 9 2 19 4 1 16 2 18 4 2 17 4 2 14 4 2 5 4 2 13 6 2 11 3 2 4 6 YES 16 1 1 1 5 2 20 8 1 16 2 19 8 2 17 8 2 4 8 2 3 2 2 18 9 2 15 12 1 1 1 5 1 6 2 10 12 2 8 12 2 2 12 YES 16 1 6 1 15 2 13 3 2 11 3 2 9 3 1 6 1 15 1 20 2 10 4 1 12 1 17 2 7 14 2 5 19 1 1 2 3 4 2 2 19 YES 2 2 ...
result:
wrong answer you didn't find a solution but jury did (test case 9162)