cf/mirror

Preparing for the Contest

CF
377B1900· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
3 4 9
1 3 1 2
2 1 3
4 3 6
Output
YES
2 3 2 3
Sample 2of 4
Input
3 4 10
2 3 1 2
2 1 3
4 3 6
Output
YES
1 3 1 3
Sample 3of 4
Input
3 4 9
2 3 1 2
2 1 3
4 3 6
Output
YES
3 3 2 3
Sample 4of 4
Input
3 4 5
1 3 1 2
2 1 3
5 3 6
Output
NO
377B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)