Skip to content

Dreaming

UnratedFunction
English

Language

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

Statement

Dreaming: original English statement, page 1

Dreaming: original English statement, page 2

Dreaming: original English statement, page 3

Dreaming: original English statement, page 4

Examples

Sample input 1
12 8 2
0 8 4
8 2 2
2 7 4
5 11 3
5 1 7
1 3 1
1 9 5
10 6 3
Sample output 1
18

Tags

No tags yet

Source

This problem accepts only these languages.

C++20