Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
91888 sh25_shenpy 数组滚动 C++ 无测评数据 0 MS 0 KB 438 2026-06-18 06:04:53

Tests(0/0):


#include <bits/stdc++.h> using namespace std ; const int N = 110 ; int n , a[N][N] ; int main() { cin >> n ; for(int i = 1 ; i <= n ; i++ ) for(int j = 1 ; j <= n ; j++ ) cin >> a[i][j] ; for(int i = 1 ; i <= n ; i++ ) { cout << a[i][n] << ' ' ; for(int j = 2 ; j < n ; j++) cout << a[i][j] << ' ' ; cout << a[i][1] << endl ; } return 0 ; }