| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74420 | mg_zhouxiaozhe | 百鸡问题 | C++ | 解答错误 | 0 MS | 240 KB | 307 | 2025-11-26 19:59:05 |
#include<bits/stdc++.h> using namespace std; int main(){ int x,y,z,n,m; cin>>x>>y>>z>>n>>m; int count=0; for(int i=0;i<=m;i++){ for(int d=0;d<m-i;d++){ int b=m-i-d; if(b>=0&&b%z==0){ int total_cost=x*i+y*d+(b/z); if(total_cost==n){ count++; } } } } return 0; }