cf/mirror

Design Tutorial: Inverse the Problem

CF
472D1900· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 5
Input
3
0 2 7
2 0 9
7 9 0
Output
YES
Sample 2of 5
Input
3
1 2 7
2 0 9
7 9 0
Output
NO
Sample 3of 5
Input
3
0 2 2
7 0 9
7 9 0
Output
NO
Sample 4of 5
Input
3
0 1 1
1 0 1
1 1 0
Output
NO
Sample 5of 5
Input
2
0 0
0 0
Output
NO
472D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…