codeforces-scrape

Codeforces scraped problems and editorials
git clone git://git.laack.co/codeforces-scrape.git
Log | Files | Refs | README

171B.md (453B)


      1 Source: https://codeforces.com/problemset/problem/171/B
      2 
      3 B. Star
      4 
      5 time limit per test
      6 
      7 2 seconds
      8 
      9 memory limit per test
     10 
     11 256 megabytes
     12 
     13 input
     14 
     15 stdin
     16 
     17 output
     18 
     19 stdout
     20 
     21 ![](https://espresso.codeforces.com/2f12d2ded41ecfe02dbbc1f0074b2fefced6ed4e.png)
     22 
     23 Input
     24 
     25 The input contains a single integer *a* (1 ≤ *a* ≤ 18257).
     26 
     27 Output
     28 
     29 Print a single integer *output* (1 ≤ *output* ≤ 2·109).
     30 
     31 Examples
     32 
     33 Input
     34 
     35 ```
     36 2
     37 ```
     38 
     39 Output
     40 
     41 ```
     42 13
     43 ```