Skip to content

Utopia Divided

UnratedLanguage limit
English

Language

Contribute a translation
Time limit
2000 ms
Memory limit
32 MB (no extra memory)
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

Utopia Divided

Utopia Divided

Examples

Sample input 1
4
7 5 6 1 3 2 4 8
4 1 2 1
Sample output 1
+7 -1
-5 +2
-4 +3
+8 +6
Sample input 2
4
2 5 4 1 7 8 6 3
4 2 2 1
Sample output 2
+3 -2
-4 +5
-6 +1
+8 +7

Tags

No tags yet

Source

This problem accepts only these languages.

C++20