| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 366655 | 胡珂 | 【GESP二级】百鸡问题 | C++ | Time Limit Exceeded | 80 | 1000 MS | 252 KB | 267 | 2025-12-07 13:37:10 |
#include<bits/stdc++.h> using namespace std; int main(){ int x,y,z,n,m,sum=0; cin>>x>>y>>z>>n>>m; for(int i=0;i<=m;i++){ for(int j=0;j<=m;j++){ for(int k=0;k<=m;k+=z){ if(i+j+k==m&&i*x+j*y+k/z==n){ sum++; } } } } cout<<sum; return 0; }