#21134: _c++


weiweitseng (Wei Wei)


#include <iostream>

using namespace std;

 

int main(){

int a;

while (cin>>a){

cout<<a*(a-1)+2<<endl;

}

}

#26111: Re:c++


1066108@tjps.tp.edu.tw (Sunday)


#include

using namespace std;

 

int main(){

int a;

while (cin>>a){

cout<<a*(a-1)+2<<endl;

}

}


這算是直接代公式了