From 0930cacc60dd0446fee52215054c0e2945ea3f56 Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Tue, 3 Aug 2021 15:10:24 +0800 Subject: [PATCH] =?UTF-8?q?715.=20=E4=BD=99=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://www.acwing.com/problem/content/submission/code_detail/6863746/ --- AcWing/715/715.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 AcWing/715/715.cpp diff --git a/AcWing/715/715.cpp b/AcWing/715/715.cpp new file mode 100644 index 00000000..fb4cc324 --- /dev/null +++ b/AcWing/715/715.cpp @@ -0,0 +1,12 @@ +#include + +using namespace std; + +int main() { + int n; + cin >> n; + for (int i = 1; i <= 10000; i++) { + if (i % n == 2) cout << i << endl; + } + return 0; +}