17 条题解

  • 2
    @ 2026-11-16 20:45:25

    居然大家都发了,我也发一个吧

    #include <bits/stdc++.h>
    using namespace std;
    const int N = 1e2 + 10;
    const int INF = 0x3f3f3f3f;
    int a[N][N],n,m;
    int main()
    {
    	cin >> n >> m;
    	for(int i = 1;i <= n;i++)
    		for(int j = 1;j <= m;j++)
    			cin >> a[i][j];
    	for(int i = 1;i <= m;i++)
    	{
    		for(int j =	n;j >= 1;j--)
    		{
    			cout << a[j][i] << " ";
    		}
    		cout << "\n";
    	}
    	return 0;
    }
    
    

    注意:AC代码,不AC我吃屎

    信息

    ID
    1071
    时间
    1000ms
    内存
    128MiB
    难度
    6
    标签
    递交数
    1176
    已通过
    369
    上传者