Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
64862 zhangweiran 百钱百鸡 C++ 运行出错 0 MS 248 KB 305 2025-04-29 10:22:58

Tests(0/1):


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


测评信息: