3 条题解

  • 1
    @ 2023-8-9 22:36:43

    《需要找规律的循环》

    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        for(int i=10;i<=1000;i++)
        {
            if(i%2==0&&i%3==0&&i%7==0)
                cout<<i<<endl;
        }
        return 0;
    }
    
    • 1
      @ 2023-7-8 7:48:19

      #include <iostream> using namespace std; int main() { for (int i = 10; i <= 1000; i++) { if (i % 2 == 0 && i % 3 == 0 && i % 7 == 0) { cout << i << endl; } } return 0; }

      • 0
        @ 2022-4-7 11:18:31

        #include<bits/stdc++.h> using namespace std; int main() { for(int i=10;i<=1000;i++)if(i%20&&i%70&&i%3==0)cout<<i<<endl; return 0; }//100AC

        • 1

        信息

        ID
        91
        时间
        1000ms
        内存
        16MiB
        难度
        1
        标签
        递交数
        120
        已通过
        82
        上传者