分类 学无止境 下的文章

使用Grafana对AWS等云服务进行监控

作者: bmzz | 时间: | 浏览: 794 | 留言: 0 | 分类: 学无止境

10 11

  现在大多数云服务商家,都有面向新用户的免费使用资源,但是很容易用超量。经常登录后台查看虽然是个办法,但是太过麻烦了(风控警告)。这时候,把各个云服务的监控i信息汇总到一个地方,就会方便得多了。

- 阅读剩余部分 -

兔子生兔子问题(兔子会死亡)

作者: bmzz | 时间: | 浏览: 1397 | 留言: 2 | 分类: 算不出来

09 09

题目:

Consider a special type of animal known as an Ewwok that reproduces following the rules below:
An Ewwok dies six months after it is born. That is, if an Ewwok is born in month 0, it will die in month 6.
An Ewwok gives birth to two Ewwoks every two months until it dies. That is, if an Ewwok is born in month 0, it will reproduce in months 2 and 4. It does not reproduce in month 6 or beyond.
In each month, among all the Ewwoks that have been alive for exactly three months, there is one that dies. That is, if there are n (n > 0) Ewwoks that are born in month 0, one of them will die in month 3.
Given an integer initial representing the number of Ewwoks born in month 0, and an integer m representing a month, your task in this question is to write a program that calculates and returns the number of Ewwoks alive in month m.

- 阅读剩余部分 -

我好菜啊