| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 328966 | 黄浙峰老师 | 【C3-7】阿凡提的难题 | C++ | Accepted | 100 | 3 MS | 256 KB | 240 | 2025-07-07 17:23:47 |
#include<bits/stdc++.h> using namespace std; main(){ int n,x,y; cin>>n>>x>>y; for(int i=1;i<=(n-y)/x;i++){ for(int j=1;j<=(n-x)/y;j++){ if(x*i+j*y==n&&i%2==0&&j%2==0){ cout<<i<<" "<<j<<endl; } } } return 0; }