0
已解决
#include<iostream>
using namespace std;
int main()
{
int a;
cin>>a;
switch(a)
{
case 1:cout<<"f=n";break;
case 2:cout<<"f=n*n";break;
case 3:cout<<"f=n*n*n";break;
case 4:cout<<"f=n*n*n*n";break;
case 5:cout<<"f=n*n*n*n*n";break;
case 6:cout<<"f=n*n*n*n*n*n";break;
case 7:cout<<"f=n*n*n*n*n*n*n";break;
case 8:cout<<"f=n*n*n*n*n*n*n*n";break;
default:cout<<"Error";break;
}
return 0;
}http://judge.codingtang.com/problem/1324/
