mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 03:31:59 +00:00
715. 余数
https://www.acwing.com/problem/content/submission/code_detail/6863746/
This commit is contained in:
parent
eb20579b2a
commit
0930cacc60
12
AcWing/715/715.cpp
Normal file
12
AcWing/715/715.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user