4 条题解

  • 2
    @ 2023-9-12 21:36:38
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n;
        cin >> n;
        for(int i = 1;i <= n;i++)
        {
            if(((i % 10 == 3 || i / 10 == 3)||(i /10 == 5 || i % 10 == 5))&&(i % 2 == 0))
            {
                cout << i << endl;
            }
        }
        return 0;
    }
    
    • 1
      @ 2023-8-31 10:20:56

      当当当,我又来做题解啦!O(∩_∩)O

      也是AC过的!(づ ̄3 ̄)づ

      #include <iostream>
      using namespace std;
      int main()
      {
          int n;
          cin >> n;
          for (int i=1;i<=n;i++)
          {
              if (i%2==0)//因数有2(数字是二的倍数)才进行
              {
                  if (i/100==5 or i/100==3)//百位含有数字3或者含有数字5
                  {
                      cout << i << endl; 
                  }
                  else if (i%100/10==5 or i%100/10==3)  //十位含有数字3或者含有数字5
                  {
                      cout << i << endl;
                  }
                  else if (i%10==5 or i%10==3)//个位含有数字3或者含有数字5
                  {
                      cout << i << endl;
                  }
              }
          }
          return 0;//好习惯
      

      《制作不易😕,赞在哪里👀?

      记得点赞再抱走哦😄》

      • 1
        @ 2023-3-9 19:59:15

        ``

        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
            int n;
            cin >> n;
            for(int i = 1;i <= n;i++)
            {
                if(((i % 10 == 3 || i / 10 == 3)||(i /10 == 5 || i % 10 == 5))&&(i % 2 == 0))
                {
                    cout << i << endl;
                }
            }
            return 0;
        }
        
        • 0
          @ 2023-12-23 16:33:28

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

          已AC

          • 1

          【入门】输出满足条件的整数4

          信息

          ID
          711
          时间
          1000ms
          内存
          16MiB
          难度
          1
          标签
          递交数
          96
          已通过
          67
          上传者