Magic Squares
178D11500· specialist2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
31 2 3 4 5 6 7 8 9
Output
152 7 69 5 14 3 8
Sample 2of 3
Input
31 0 -1 0 2 -1 -2 0 1
Output
01 0 -1-2 0 21 0 -1
Sample 3of 3
Input
25 5 5 5
Output
105 55 5
58%
178D1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)