From 122daa2ef8f880aceecd8254b2d515f6514139ab Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Sat, 2 Oct 2021 14:31:36 +0800 Subject: [PATCH] 723. PUM https://www.acwing.com/problem/content/submission/code_detail/8002554/ --- AcWing/723/723.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 AcWing/723/723.cpp diff --git a/AcWing/723/723.cpp b/AcWing/723/723.cpp new file mode 100644 index 00000000..a253007c --- /dev/null +++ b/AcWing/723/723.cpp @@ -0,0 +1,16 @@ +#include + +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; +}