mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-23 20:08:47 +00:00
813. 打印矩阵
https://www.acwing.com/problem/content/submission/code_detail/14063881/
This commit is contained in:
parent
9e8c61ff42
commit
0f16821fad
24
AcWing/813/813.cpp
Normal file
24
AcWing/813/813.cpp
Normal file
@ -0,0 +1,24 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
using std::cin;
|
||||
using std::cout;
|
||||
const char endl = '\n';
|
||||
|
||||
int n, m;
|
||||
std::string s;
|
||||
|
||||
int main() {
|
||||
std::ios::sync_with_stdio(false);
|
||||
|
||||
cin >> n >> m;
|
||||
|
||||
std::getline(cin, s);
|
||||
|
||||
while (n--) {
|
||||
std::getline(cin, s);
|
||||
cout << s << endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user