Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
328911 黄浙峰老师 【C3-7】恐龙园买玩具? C++ Accepted 100 1 MS 252 KB 263 2025-07-07 16:45:41

Tests(3/3):


#include<iostream> using namespace std; int 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(i>=j&&(i+j)>=5&&i*x+j*y==n){ cout<<i<<" "<<j<<endl; } } } return 0; }


Judgement Protocol: