Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
136107 唐诗阳 百钱买百鸡II C++ Wrong Answer 4 MS 280 KB 546 2025-11-09 15:40:32

Tests(9/10):


Code:

#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 x,y,z,N,a=1; cin>>N; for(int x=0;x<=N;x++){ y=(N-7*x)/4; z=6*x+3*y; if(x>=0 && y>=0 && z>=0 && x+y+z==N){ cout<<a<<": "<<x<<','<<y<<','<<z<<endl; a++; } } if(a==1) cout<<"Nome"; return 0; }


Run Info:

------Input------
10
------Answer-----
None
------Your output-----
Nome