Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
335113 | 陈熙 | 【C3-7】开学大采购? | C++ | Accepted | 100 | 3 MS | 252 KB | 216 | 2025-07-21 17:11:21 |
#include<iostream> using namespace std; int main(){ int n,x,y; cin>>n>>x>>y; for(int i=1;i<=n/x;i++){ for(int j=1;j<=n/y;j++){ if(i*x+j*y==n&&i+j>50) cout<<i<<" "<<j<<endl; } } return 0; }