3 条题解

  • 3
    @ 2022-12-16 20:50:54
    #include <iostream>//hetao3097453
    using namespace std;
    int main()
    {
        int n;
        cin >> n;
        for(int i = 1;i <= n;i++)
        {
            if((i % 10 == 1 || i % 10 == 3) || (i % 10 == 5 || i % 10 == 7))
            {
                cout << i << endl;
            }
        }
        return 0;
    }
    
    
    • 2
      @ 2023-8-19 20:18:19

      半夜打卡第6题

      #include <bits/stdc++.h>
      using namespace std;
      int main()
      {
          int n;
          cin >> n;
          for (int i = 1; i <= n; i += 2) if (i % 10 != 9) cout << i << endl;
          return 0;
      }
      

      AC,放心食用👀️

      • 0
        @ 2023-7-25 14:44:33
        #include <bits/stdc++.h>
        using namespace std;
        int main(){
            int n;
            cin >> n;
            for (int i = 1; i <= n; i += 2)if (i % 10 != 9) cout << i << "\n";
        }
        
        • 1

        【入门】请输出带有特殊尾数的数

        信息

        ID
        695
        时间
        1000ms
        内存
        64MiB
        难度
        1
        标签
        递交数
        100
        已通过
        76
        上传者