| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 5458 | chensiyu33 | 买小猫小狗 | C++ | Wrong Answer | 0 | 105 MS | 252 KB | 205 | 2020-08-04 20:38:07 |
#include<bits/stdc++.h> using namespace std; int main(){ int x,a,b,sum; cin>>x>>a>>b; for(int i=1;i<=x;i++){ for(int j=1;j<=x;j++){ if(i*a+b*j==x) sum++; } } cout<<sum; return 0; }