3 solutions

  • 0
    @ 2025-4-12 11:37:18

    #include<bits/stdc++.h> using namespace std; int main() { int m,n; cin>>m>>n; int t=m; int s=0; while(t<=n) //枚举m到n之间的所有数 { if(t%17==0) //判断17的倍数 { s+=t; } t++; } cout<<s; return 0; }

    • -1
      @ 2025-1-12 20:46:37
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
          int a;
          cin>>a;
          if(!!a)
          {
              cout<<"NO";
          }
          else
          {
              cout<<"YES";
          }
          return 0;
      }
      
      • -1
        @ 2024-7-17 19:05:23
        #include <bits/stdc++.h>
        using namespace std;
        int main ()
        {
            int w;
            cin>>w;
            if (w==0)
            {
                cout<<"YES";
            }
            else
            {
                cout<<"NO";
            }
            return 0;
        }
        
        
        • 1

        Information

        ID
        20
        Time
        1000ms
        Memory
        256MiB
        Difficulty
        2
        Tags
        (None)
        # Submissions
        111
        Accepted
        69
        Uploaded By