| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 5487 | 黄祖耀 | 买小猫小狗 | C++ | Accepted | 100 | 0 MS | 252 KB | 183 | 2020-08-05 07:16:12 |
#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&&x-i*a>0) n++; } cout<<n; return 0; }