Toggle navigation
HUSTOJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
Recent
Login
Problem1008--1061
1008: 1061
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
2
Solved:
0
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
给定一个单链表
L
1
→
L
2
→
⋯
→
L
n
−
1
→
L
n
,请编写程序将链表重新排列为
L
3
→
⋯
L
n
→
L
1
→
L
2
。
Sample Input
Copy
1 2 3 4 5 6
Sample Output
Copy
3 4 5 6 1 2
Source/Category