| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 5486 | 黄祖耀 | 买小猫小狗 | C++ | Wrong Answer | 10 | 0 MS | 252 KB | 174 | 2020-08-05 07:11:31 |
#include<bits/stdc++.h> using namespace std; int main(){ int x,a,b,n=0; cin>>x>>a>>b; for(int i=1;i<=x/a;i++){ if((x-i*a)%b==0) n++; } cout<<n; return 0; }