AC解參考看看
#include<iostream>using namespace std;
int main(){ int a; while( cin>>a){ if(1<=a) cout<<a*a-a+2<<endl;} return 0;}