cf/mirror

Three Pairwise Maximums

CF
1385A800· newbie1s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 1
Input
5
3 2 3
100 100 100
50 49 49
10 30 20
1 1000000000 1000000000
Output
YES
3 2 1
YES
100 100 100
NO
NO
YES
1 1 1000000000
1385A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)