codeforces-scrape

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

630B.md (1394B)


      1 Source: https://codeforces.com/problemset/problem/630/B
      2 
      3 B. Moore's Law
      4 
      5 time limit per test
      6 
      7 0.5 seconds
      8 
      9 memory limit per test
     10 
     11 64 megabytes
     12 
     13 input
     14 
     15 standard input
     16 
     17 output
     18 
     19 standard output
     20 
     21 The city administration of IT City decided to fix up a symbol of scientific and technical progress in the city's main square, namely an indicator board that shows the effect of Moore's law in real time.
     22 
     23 Moore's law is the observation that the number of transistors in a dense integrated circuit doubles approximately every 24 months. The implication of Moore's law is that computer performance as function of time increases exponentially as well.
     24 
     25 You are to prepare information that will change every second to display on the indicator board. Let's assume that every second the number of transistors increases exactly 1.000000011 times.
     26 
     27 Input
     28 
     29 The only line of the input contains a pair of integers *n* (1000 ≤ *n* ≤ 10 000) and *t* (0 ≤ *t* ≤ 2 000 000 000) — the number of transistors in the initial time and the number of seconds passed since the initial time.
     30 
     31 Output
     32 
     33 Output one number — the estimate of the number of transistors in a dence integrated circuit in *t* seconds since the initial time. The relative error of your answer should not be greater than 10- 6.
     34 
     35 Examples
     36 
     37 Input
     38 
     39 ```
     40 1000 1000000
     41 ```
     42 
     43 Output
     44 
     45 ```
     46 1011.060722383550382782399454922040
     47 ```