Skip to content

Arranging Shoes

UnratedFunction
English

Language

Contribute a translation
Time limit
1000 ms
Memory limit
1024 MB
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

Arranging Shoes: original English statement, page 1

Arranging Shoes: original English statement, page 2

Arranging Shoes: original English statement, page 3

Examples

Sample input 1
2
2 1 -1 -2
Sample output 1
4
Sample input 2
3
-2 2 2 -2 -2 2
Sample output 2
1

Tags

No tags yet

Source

This problem accepts only these languages.

C++20