###### tags: `(Sprout OJ)` # 1419-矩陣翻轉 (未過) ```clike= #include <iostream> using namespace std; int main() { int n,m,a; while(cin>>n>>m) { int z[n][m]; for(int i=0;i<n;i++) { for(int j=0;j<m;j++) { cin>>a; z[i][j]=a; } } for(int i=0;i<m;i++) { for(int j=0;j<n;j++) { cout<<z[j][i]<<" "; } cout<<endl; } } } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up