mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-23 18:28:47 +00:00
723. PUM
https://www.acwing.com/problem/content/submission/code_detail/8002554/
This commit is contained in:
parent
6dcb3facc8
commit
122daa2ef8
16
AcWing/723/723.cpp
Normal file
16
AcWing/723/723.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int n, m, c;
|
||||
|
||||
int main() {
|
||||
cin >> n >> m;
|
||||
for (int i = 1; i <= n; i++, c++) {
|
||||
for (int j = 1; j < m; j++) {
|
||||
cout << ++c << ' ';
|
||||
}
|
||||
cout << "PUM" << endl;
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user