枚举基础: 例题: 1. 完美立方:(POJ1543) 代码: #include<iostream> #include<cstdio> using namespace std; int main() { int n; cin>>n; int a[101],i,j,k,q; for(i=1