Palindromic Matrix
1118C1700· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
41 8 8 1 2 2 2 2 2 2 2 2 1 8 8 1
Output
YES1 2 2 18 2 2 88 2 2 81 2 2 1
Sample 2of 4
Input
31 1 1 1 1 3 3 3 3
Output
YES1 3 13 1 31 3 1
Sample 3of 4
Input
41 2 1 9 8 4 3 8 8 3 4 8 9 2 1 1
Output
NO
Sample 4of 4
Input
110
Output
YES10
58%
1118C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)