1 solutions

  • 0
    @ 2026-11-14 15:06:34

    C++ :

    #include <bits/stdc++.h>
    using namespace std;
    int a[105][105];
    int main(){
        int n,m;
        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 = 1;j<=n;j++){
                cout << a[n-j+1][i] << " ";
            }
            cout << endl;
        }
    }
    
    • 1

    Information

    ID
    163
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    10
    Tags
    # Submissions
    2
    Accepted
    2
    Uploaded By