1 条题解

  • 0
    @ 2024-2-1 17:53:54

    本题难度不大,只需要按题面意思模拟即可。 给出AC代码:

    #include <bits/stdc++.h>
    using namespace std;
    
    int n, m;
    
    int main() {
         cin >> n >> m;
         for(int i = 1; i <= n; i++) {
              if(i % m == 0) continue;
              else cout << i << endl;
         }
         return 0;
    }
    
    
    
    • 1

    信息

    ID
    9483
    时间
    1000ms
    内存
    512MiB
    难度
    1
    标签
    递交数
    3
    已通过
    3
    上传者