Hack
Now
EN
Login
Register
HackNow
Spiral order chiqarish | HackNow
Go back
Reading Mode
Problem
Submissions
Spiral order chiqarish
lock
UZ only
Oson
100 points
2 s
256 MB
Input format
Output format
Constraints
Examples
1
1
Example #1
Input
3 4 1 2 3 4 5 6 7 8 9 10 11 12
Output
1 2 3 4 8 12 11 10 9 5 6 7
Solution editor
Python 3
Clear
Language
PYTHON
UTF-8
Tab
4 spaces
Ctrl
+
Enter
Submit
Submit