Run ID:8215

提交时间:2025-06-18 13:00:34

#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; }