Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6995 柯宇希 百钱买百鸡II C++ Wrong Answer 0 MS 256 KB 583 2025-03-29 15:24:44

Tests(0/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=0; cin>>n; for(x=1;x>=n;x++){ for(y=1;y>=n;y++){ for(z=1;z>=n;z++){ if(x+y+z==n&&5*x+3*y+1/z==n) a++; cout<<a<<":"<<x<<","<<y<<","<<z; } } } if(a==0){ cout<<"None"; } return 0; }


Run Info:

------Input------
100
------Answer-----
1: 0,25,75 2: 4,18,78 3: 8,11,81 4: 12,4,84
------Your output-----
None