4 条题解

  • 3
    @ 2026-8-7 10:35:56

    看题解的是gay

  • 1
    @ 2026-9-17 17:09:07

    傻子专用

    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
    	int a, b, c, n = 0;
    	cin >> a >> b >> c;
    	for (int i = 1; i <= a; i++)
    		for (int j = 1; j <= a; j++)
    			if (i * b + j * c == a)
    				n++;
    	cout << n;
    	return 0;
    }
    
    
    
    • 1
      @ 2026-8-7 10:35:14
      #include<bits/stdc++.h>
      using namespace std;
      int main(){
          int x,a,b,c=0;
          cin>>x>>a>>b;
          for(int i=1;i*a<=x-b;i++)
          {
              int j=x-i*a;
              if(j%b==0)
              {
                  c++;
              }
          }
          cout<<c;
          return 0;
      }
      
      • 0
        @ 2026-8-7 10:06:27

        我是题解

        • 1

        信息

        ID
        30020
        时间
        1000ms
        内存
        256MiB
        难度
        2
        标签
        递交数
        37
        已通过
        26
        上传者