Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5423 陈一畅 买小猫小狗 C++ 解答错误 30 124 MS 252 KB 210 2020-08-02 16:26:26

Tests(3/10):


#include<bits/stdc++.h> using namespace std; int x,a,b,temp; int main(){ cin>>x>>a>>b; for(int i=1;i<x/a;i++){ for(int j=1;j<=x/b;j++){ if(i*a+j*b==x) temp++; } } cout<<temp; return 0; }


测评信息: