Skip to content

Go with the Flow

Unrated
English

Language

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

Statement

Go with the Flow, page 1

Go with the Flow, page 2

Examples

Sample input 1
21
The Yangtze is the third longest
river in Asia and the longest in
the world to flow
entirely in one country
Sample output 1
15 5
Sample input 2
25
When two or more rivers meet at
a confluence other than the sea
the resulting merged river takes
the name of one of those rivers
Sample output 2
21 6

Tags

No tags yet

Source