Skip to content

Horses

UnratedFunction
English

Language

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

Statement

Horses: original English statement, page 1

Horses: original English statement, page 2

Horses: original English statement, page 3

Examples

Sample input 1
3
2 1 3
3 4 1
1
2 1 2
Sample output 1
8
6

Tags

No tags yet

Source

This problem accepts only these languages.

C++20