fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int n ;
  5. cin>>n;
  6. cout<<2*n*n-n;
  7. return 0 ;
  8. }
Success #stdin #stdout 0s 16064KB
stdin
9
stdout
153