QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#307368 | #8128. Alternating Paths | ucup-team003# | WA | 42ms | 4244kb | C++17 | 4.8kb | 2024-01-18 14:42:29 | 2024-01-18 14:42:30 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 4104kb
input:
3 6 6 1 2 2 3 3 1 4 1 5 2 6 3 6 6 1 2 2 3 3 1 3 4 4 5 4 6 4 3 1 2 4 2 2 3
output:
RRRBBB BRRBRR IMPOSSIBLE
result:
ok ok (3 test cases)
Test #2:
score: 0
Accepted
time: 1ms
memory: 4128kb
input:
1 4 6 1 2 1 3 1 4 2 3 2 4 3 4
output:
RRBRRR
result:
ok ok (1 test case)
Test #3:
score: 0
Accepted
time: 1ms
memory: 4180kb
input:
1 5 6 1 2 1 3 1 5 2 4 2 5 3 4
output:
RBRBRR
result:
ok ok (1 test case)
Test #4:
score: 0
Accepted
time: 1ms
memory: 4196kb
input:
1 5 8 1 2 1 4 1 5 2 3 2 4 2 5 3 4 4 5
output:
RRBBRRRB
result:
ok ok (1 test case)
Test #5:
score: 0
Accepted
time: 1ms
memory: 4184kb
input:
1 7 12 1 2 1 3 1 6 2 3 2 5 2 7 3 4 3 5 3 6 4 6 4 7 5 7
output:
RRBRRBBBRRRB
result:
ok ok (1 test case)
Test #6:
score: 0
Accepted
time: 1ms
memory: 4100kb
input:
1 7 13 1 2 1 3 1 4 1 6 1 7 2 5 3 5 3 7 4 6 4 7 5 6 5 7 6 7
output:
BRBRRRBRRRBRB
result:
ok ok (1 test case)
Test #7:
score: 0
Accepted
time: 1ms
memory: 4068kb
input:
1 4 5 1 2 1 3 1 4 2 3 2 4
output:
RRBRR
result:
ok ok (1 test case)
Test #8:
score: 0
Accepted
time: 1ms
memory: 4200kb
input:
1 5 7 1 2 1 4 2 3 2 4 3 4 3 5 4 5
output:
RRBRRRB
result:
ok ok (1 test case)
Test #9:
score: 0
Accepted
time: 1ms
memory: 4108kb
input:
1 5 7 1 2 1 5 2 3 2 5 3 4 3 5 4 5
output:
RRBRRRB
result:
ok ok (1 test case)
Test #10:
score: 0
Accepted
time: 1ms
memory: 4064kb
input:
1 6 6 1 2 1 4 2 3 2 6 3 5 4 5
output:
BRRRRB
result:
ok ok (1 test case)
Test #11:
score: 0
Accepted
time: 1ms
memory: 4048kb
input:
1 6 10 1 2 1 3 1 5 1 6 2 4 3 4 3 5 3 6 4 5 4 6
output:
BRRBRBRRRB
result:
ok ok (1 test case)
Test #12:
score: 0
Accepted
time: 1ms
memory: 4200kb
input:
1 9 14 1 2 1 5 1 8 2 3 2 4 3 6 3 9 4 6 4 7 4 8 5 7 5 8 6 8 7 8
output:
BRRRBBBRBBRRBR
result:
ok ok (1 test case)
Test #13:
score: 0
Accepted
time: 1ms
memory: 4188kb
input:
1 7 12 1 2 1 3 1 4 1 6 1 7 2 5 2 7 3 4 3 6 3 7 4 5 5 6
output:
RBBRRRRRBRRB
result:
ok ok (1 test case)
Test #14:
score: 0
Accepted
time: 7ms
memory: 4192kb
input:
1000 2 1 2 1 2 1 1 2 2 1 2 1 2 1 2 1 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 1 2 2 1 1 2 2 1 2 1 2 1 1 2 2 1 1 2 2 1 2 1 2 1 1 2 2 1 2 1 2 1 1 2 2 1 2 1 2 1 1 2 2 1 1 2 2 1 2 1 2 1 1 2 2 1 1 2 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1...
output:
R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R ...
result:
ok ok (1000 test cases)
Test #15:
score: 0
Accepted
time: 7ms
memory: 4072kb
input:
1000 2 1 1 2 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 1 2 2 1 2 1 2 1 1 2 2 1 1 2 2 1 1 2 2 1 2 1 2 1 1 2 2 1 2 1 2 1 2 1 2 1 1 2 2 1 2 1 2 1 1 2 2 1 1 2 2 1 2 1 2 1 2 1 2 1 1 2 2 1 1 2 2 1 1 2 2 1 2 1 2 1 1 2 2 1 2 1 2 1 1 2 2 1 1 2 2 1 1 2 2 1 2 1 2 1 1 2 2 1 2 1 2 1 2 1 2 1 1 2 2 1 1 2...
output:
R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R ...
result:
ok ok (1000 test cases)
Test #16:
score: 0
Accepted
time: 7ms
memory: 4188kb
input:
1000 3 3 2 1 1 3 3 2 3 2 3 1 3 2 3 3 2 3 2 1 3 1 3 2 2 1 3 2 3 3 2 3 3 1 1 2 3 3 1 3 2 1 2 3 3 3 2 1 3 2 3 1 3 3 1 3 1 2 3 2 3 3 3 1 2 1 3 2 3 3 1 3 1 2 3 2 3 2 3 1 1 2 3 3 3 2 1 3 1 2 3 2 3 1 2 1 3 3 3 2 1 2 3 1 3 3 2 1 3 2 1 3 3 3 1 2 3 2 1 3 3 3 3 1 3 2 2 1 3 3 1 2 3 2 3 1 3 3 1 2 2 3 3 1 3 2 2 3...
output:
RRR RB RRR RB RRR RRR RRR RRR RRR RRR BR RRR BR RRR RRR RRR RRR RRR RRR BR RB BR RB RRR BR RRR RRR RB RRR RRR RRR RRR RB RB BR RRR RB RRR RRR BR RB RB RRR RRR RRR RB BR RRR RB RRR RB BR RRR RRR RB BR RB RB RRR BR RB BR RRR RB BR RRR BR RRR RB BR RRR RRR RRR RB RRR BR RRR BR RB BR BR RRR RB RRR RB RB...
result:
ok ok (1000 test cases)
Test #17:
score: 0
Accepted
time: 7ms
memory: 4116kb
input:
1000 3 3 3 2 2 1 3 1 3 2 1 3 2 1 3 2 1 2 3 2 3 3 3 1 1 2 2 3 3 2 3 1 2 3 3 3 1 2 1 3 2 3 3 2 1 3 3 2 3 3 2 3 3 1 1 2 3 3 3 1 2 1 2 3 3 2 1 3 3 2 3 3 2 3 1 3 2 1 3 2 2 1 3 1 3 3 3 1 1 2 3 2 3 3 3 1 3 2 2 1 3 2 1 3 2 3 3 2 3 2 2 1 3 3 1 3 1 2 3 2 3 3 2 1 1 3 3 2 3 2 1 3 1 2 3 3 2 1 3 1 2 3 3 3 3 2 1 2...
output:
RRR BR RB RRR RB RRR RB RRR RRR RB RRR RB RRR RRR RB BR RRR RRR BR RRR RRR RRR RB RB RB RB BR RRR RRR RRR BR BR RB BR BR RRR BR RRR RRR BR RRR RB RRR RRR RRR RB RRR RB RRR RRR BR RB RRR RRR RRR RRR RRR BR RRR RRR BR RRR RRR RRR RRR RB RB RRR RB RRR RRR RB RRR RRR RB BR RRR RB RRR RRR RRR RRR RRR RB ...
result:
ok ok (1000 test cases)
Test #18:
score: 0
Accepted
time: 22ms
memory: 4108kb
input:
1000 4 4 2 1 4 2 3 2 1 3 4 4 2 1 1 4 2 4 2 3 4 5 1 3 2 4 1 2 1 4 3 2 4 3 3 4 1 4 4 2 4 6 1 4 3 1 4 2 1 2 4 3 3 2 4 3 1 3 4 3 2 3 4 3 3 2 4 2 2 1 4 5 1 3 2 4 4 3 2 3 1 4 4 4 1 4 3 2 3 4 2 1 4 6 3 4 4 2 2 1 4 1 1 3 3 2 4 6 4 2 1 4 2 3 4 3 2 1 3 1 4 6 4 1 3 4 3 2 3 1 2 1 4 2 4 6 4 1 2 4 2 1 1 3 3 2 3 4...
output:
RBRR RRRB RRRBR IMPOSSIBLE BRRRRR IMPOSSIBLE IMPOSSIBLE RRRBR RBRR RRRBRR RBRRRR BRRRRR BRRRRR RRRB BRR RRRRRB RRRB RBRR RBR BRRRR RRRBR RRRB RRBRRR RRBRR RRB RRBRRR BRRRRR BRRRRR RBRRRR RRBRR RBRRRR BRRRR BRR IMPOSSIBLE RRRB RBRR BRR RRRB RRRBRR IMPOSSIBLE BRR RBRRR IMPOSSIBLE IMPOSSIBLE RBRRRR RRB...
result:
ok ok (1000 test cases)
Test #19:
score: 0
Accepted
time: 24ms
memory: 4240kb
input:
1000 4 6 4 2 4 1 3 4 3 1 1 2 3 2 4 3 4 2 3 2 1 3 4 6 4 3 1 2 2 3 1 3 2 4 4 1 4 4 2 1 3 1 4 1 3 2 4 5 2 4 1 2 1 3 4 1 3 2 4 3 2 3 2 4 1 4 4 4 1 2 3 2 1 4 2 4 4 5 2 1 1 3 3 2 4 1 4 2 4 4 1 2 4 2 3 2 4 1 4 6 2 4 3 4 3 2 3 1 4 1 1 2 4 3 1 3 2 4 3 2 4 6 4 3 4 1 2 1 4 2 3 1 3 2 4 4 1 2 4 3 1 3 2 3 4 6 3 2...
output:
RBRRRR RBR RRRRRB RRBR RRRBR RBR RBRR RRRBR RRBR RRRRBR RRB RBRRRR RBRR RRRBRR RBRRR IMPOSSIBLE RBRRRR RRRB RRRRB RRBRR RBR RRRRB BRRRRR RBRRR RRRRBR RRRRB RRRBR RBRR RBRRRR RRRB RRBRRR BRRR RRRBRR RBR RRBRR IMPOSSIBLE RBRRR RBRR RRRRBR BRRR RRBR BRRRRR BRR RRRBR BRRRRR RRB IMPOSSIBLE RRRB RBR RRRBR...
result:
ok ok (1000 test cases)
Test #20:
score: 0
Accepted
time: 32ms
memory: 4108kb
input:
1000 5 8 5 1 4 5 2 4 3 2 2 1 5 3 1 3 3 4 5 9 2 4 4 5 5 2 1 5 3 1 3 5 4 1 4 3 1 2 5 5 1 4 3 1 1 5 5 2 4 2 5 9 1 2 5 4 4 3 4 2 4 1 5 3 1 5 5 2 2 3 5 9 3 4 3 2 2 5 3 1 4 5 5 3 4 1 1 5 4 2 5 10 3 5 2 1 2 5 5 4 1 3 4 2 1 4 5 1 2 3 4 3 5 5 3 4 5 3 5 1 5 4 2 5 5 6 1 2 2 4 1 5 3 2 3 1 3 4 5 8 4 2 4 3 1 2 1 ...
output:
BRBRRRRB RRBBRRRBR RBRBR RRBRRRBBR RBRRBRRBR BRRRRBBBRR BRBRB RBBRRR RRRBRRRB BRRB BBRRBRBRR BRRRR BRRBRR RBBRR RRRBRBBBRR BRBRB RBRRRRBRB RRRRBR RRRRRB RRRBBRBBRR IMPOSSIBLE RBRRBRR RBRRBB RRBBRBRRRB RBRRRBRRB IMPOSSIBLE RRBBRBRRBR RRBRRBRR RRRRBBRBBR IMPOSSIBLE RBRRBRRRBB RRBRBRRBR BRRBRRRBR BRRRR...
result:
ok ok (1000 test cases)
Test #21:
score: 0
Accepted
time: 35ms
memory: 4244kb
input:
1000 5 9 3 2 5 4 4 1 4 3 2 1 4 2 3 5 3 1 2 5 5 6 5 1 3 1 5 4 4 2 2 5 2 1 5 10 4 1 3 4 1 5 5 4 2 3 5 2 2 1 4 2 5 3 3 1 5 5 2 5 5 4 1 4 4 2 3 5 5 8 4 3 4 1 2 5 2 3 2 4 3 1 4 5 2 1 5 8 4 1 3 5 3 4 1 5 2 1 5 2 2 4 4 5 5 8 3 4 5 4 3 1 2 3 1 4 3 5 5 1 2 4 5 4 1 5 4 5 3 4 2 3 5 10 3 5 3 2 3 1 4 1 3 4 4 2 5...
output:
RRBRRBBRR RBRBRR BRRRRRRBBR RRBRB RBBRRRRR RRBBRBRR RRRRRBBB RBRB BRRBRBRBRR RBRRB BRRBRRB BRBRBRRBRR BBRRRBRR BRRRRBRRB RBRRRB RRBBRBRR RBRRRB RRBRB IMPOSSIBLE BBRR RBRRRB IMPOSSIBLE IMPOSSIBLE RBRB RBBR BBRBRRBRRR RBRRB IMPOSSIBLE RRBRRB RBRBBRRR IMPOSSIBLE RBBBR BRRBRRRBRB BRRRRBRB BRBRRR RRBRRRB...
result:
ok ok (1000 test cases)
Test #22:
score: -100
Wrong Answer
time: 42ms
memory: 4200kb
input:
1000 6 10 2 3 4 1 5 3 4 5 3 4 4 6 2 4 1 3 1 2 2 5 6 11 4 2 4 3 3 5 1 4 1 3 6 5 4 5 2 1 2 3 6 2 1 6 6 5 6 3 3 1 5 2 3 4 3 2 6 6 1 3 1 6 1 4 6 5 2 5 6 4 6 9 5 3 4 6 2 3 2 1 1 4 2 6 5 1 3 1 6 5 6 10 1 5 6 2 2 3 4 5 3 1 5 6 3 5 2 4 2 5 6 3 6 13 4 5 1 3 1 2 5 6 2 4 3 2 2 5 3 5 6 1 4 1 6 2 4 6 3 6 6 14 6 ...
output:
RBBRRBBRRR RRBBRRBRRBR IMPOSSIBLE BRRBRR RRRRBBRRB RRBRRBRBRB BRRRRRBRBBRRB RRRBBBRBRBRRRB BBRRRRRRBRB BRRRBBRRR RRRRRRBBRBBB RBRRRBRBBRBB RRRBBBBRRRBBRR BBBRRRRBR BRBRRRBRRBRB BRBRRBBBRRRRRRR RRBBRBRRBRBR RBRRRBRBRR BRRBRB RRBRRRBRB RRBRRBRRB IMPOSSIBLE RBRRBRRBBRRBB IMPOSSIBLE RRBRRBR IMPOSSIBLE I...
result:
wrong answer no path between vertices 1 and 2 (test case 19)