3 条题解

  • 3
    @ 2023-9-21 21:12:38

    e······

    #include <iostream>
    using namespace std;
    int main()
    {
        int num = 0;
        for (int i = 1; i <= 20; i++)
            for (int c = 1; c <= 95; c++)
                if (i * 5 + c + (100 - i - c) * 0.5 == 100)
                    num++;
        cout << num;
        return 0;
    }
    
    • 0
      @ 2023-10-8 21:02:18
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
          cout << 11;
          return 0;
      }//A
      
      • 0
        @ 2023-10-6 0:49:19

        先赞再搬

        #include<bits/stdc++.h>
        using namespace std;
        int n,num;
        int main()
        {
            cin>>n;
            for(int i=1;i<=20;i++)
            {
                for(int j=1;j<=100;j++)
                {
                    for(int k=1;k<=200;k++)
                    {
                        
                        if(i*5+j+k/2==100&&k%2==0&&i+j+k==100)
                        {
                            num++;
                        }
                    }
                }
            }
            cout<<num;
            return 0;
        }
        
        • 1

        信息

        ID
        1124
        时间
        1000ms
        内存
        128MiB
        难度
        4
        标签
        递交数
        55
        已通过
        28
        上传者