| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 5459 | chensiyu33 | 买小猫小狗 | C++ | Wrong Answer | 0 | 99 MS | 248 KB | 211 | 2020-08-04 20:40:02 |
#include<bits/stdc++.h> using namespace std; int main(){ long long 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; }