Problems
Queue
Competitions
Ranking
Articles
Signup
Signin
bolt
Try our new interface for solving problems
Try
Problems
167
Statement
Solutions
Statistics
Discussion
167
167
Time limit
1
second
Memory limit
64
MiB
Input example #1
content_copy
7 7 5 14 9 7 5 8
Output example #1
content_copy
-2 -4 5 0 -2 -4 -1
Initial order
168