Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
322513 马圣洁 【C3-8】马克思手稿的问题 C++ 解答错误 0 0 MS 252 KB 231 2025-05-16 20:41:52

Tests(0/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n,x,y; cin>>n>>x>>y; for(int i=2;i<=(n-y)/x;i+=2){ for(int j=(n-x)/y;j>=2;j-=2){ if(i*x+j*y==n){ cout<<i<<" "<<j<<endl; } } } return 0; }


测评信息: