AlenAntonelli

171/B - Star

Jan 5th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. ///https://trello.com/c/UUGJrJ7N/29-https-codeforcescom-problemset-problem-171-b
  2. ///https://codeforces.com/problemset/problem/171/B
  3.  
  4. #include <iostream>
  5. #define ll long long
  6. using namespace std;
  7.  
  8. int main ()
  9. {
  10.     ll n;
  11.     cin>>n;
  12.     cout<< (2*n-1)*(2*n-1) + 2*n*(n-1);
  13.  
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment