mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-08 02:13:51 +08:00
归类了 OJ,整理了一下
This commit is contained in:
25
XSM OJ 重庆小码王集团OJ/小码君将矩阵左转.cpp
Normal file
25
XSM OJ 重庆小码王集团OJ/小码君将矩阵左转.cpp
Normal file
@ -0,0 +1,25 @@
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <cstring>
|
||||
#include <cstdio>
|
||||
#include <ctime>
|
||||
#include <cmath>
|
||||
typedef long long l;
|
||||
typedef double d;
|
||||
using namespace std;
|
||||
int main(){
|
||||
l a,b,c[100][100];
|
||||
cin >>a>>b;
|
||||
for(int i=0;i<a;i++){
|
||||
for(int j=0;j<b;j++){
|
||||
cin >>c[i][j];
|
||||
}
|
||||
}
|
||||
for(int i=b-1;i>=0;i--){
|
||||
for(int j=0;j<a;j++){
|
||||
cout <<c[j][i]<<" ";
|
||||
}
|
||||
cout <<endl;
|
||||
}
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user