Programming 01

馃煛聽諑铡謤摘崭謧诈盏崭謧斩 18

猿謤榨宅 债謤铡眨斋謤, 崭謤斩 乍寨謤铡斩斋斩 湛蘸崭謧沾 乍 沾崭謧湛謩铡眨謤站铡债 沾铡湛謤斋謥炸 战蘸斋占铡宅铡毡謬謮
notion image
諘謤斋斩铡寨諠
談崭謧湛謩諠 
1  2  3  4
5  6  7  8 
9 10 11 12
12 14 15 16
缘宅謩諠
1 2 3 4 8 12 16 15 14 13 9 5 6 7 11 10
#include <iostream>

int main() {
  constexpr int rowsCount = 4, columnsCount = 4;
  int matrix[rowsCount][columnsCount];
  // Put your code to insert matrix elements
  // Put your code to print matrix in spiral form 
}

Constraints

Time limit: 1 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue