Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
8214 | 吴承熹 | 百钱买百鸡II | C++ | Output Limit Exceeded | 1 MS | 264 KB | 667 | 2025-06-18 12:56:32 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,s=1,c=0; cin>>n; for(int x=0;x<=n;x++){ for(int y=0;y<=n;y++){ for(int z=0;z<=n;z++){ if(x+y+z==n && 5*x+3*y+(1/3*1.0)*z){ cout<<s<<": "<<x<<","<<y<<","<<z<<endl; s++; c++; } } } } if(c==0){ cout<<"None"<<endl; } return 0; }