| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158896 | 陈骏睿 | 百钱买百鸡II | C++ | Compile Error | 0 MS | 0 KB | 461 | 2026-08-23 12:07:04 |
#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=0; int a=0; cin>>n; for(int x=0;x<=n/5;x++){ for(int y=0;y<=n/3;y++){ for(int z=0;z<=n/3;z++){ if(x+y+z*3==n&&x*5+y*3+z==n){ a++; cout<<a<<": "<<x<<','<<y<<','<<z<<endl; } } } } if(a==0) cout<<"None"<<endl; } return 0; }
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status