CodeForces-630B. Moore's Law

ゝ一纸荒年。 2022-08-20 09:24 15阅读 0赞

B. Moore’s Law

time limit per test

0.5 seconds

memory limit per test

64 megabytes

input

standard input

output

standard output

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.

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.

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.

Input

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.

Output

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.

Examples

Input

  1. 1000 1000000

Output

  1. 1011.060722383550382782399454922040
  2. #include<stdio.h>
  3. #include<string.h>
  4. #include<algorithm>
  5. #define LL long long
  6. #define jin 1.000000011
  7. using namespace std;
  8. double fun(double a,LL b)
  9. {
  10. double ans=1;
  11. while(b)
  12. {
  13. if(b&1)
  14. ans*=a;
  15. a*=a;
  16. b>>=1;
  17. }
  18. return ans;
  19. }
  20. int main()
  21. {
  22. int wc;
  23. LL wc1;
  24. while(scanf("%d%lld",&wc,&wc1)!=EOF)
  25. {
  26. double we,we1;
  27. we=wc;
  28. we1=fun(jin,wc1);
  29. we*=we1;
  30. printf("%lf\n",we);
  31. }
  32. return 0;
  33. }

发表评论

表情:
评论列表 (有 0 条评论,15人围观)

还没有评论,来说两句吧...

相关阅读