摘要: 小明对数的研究比较热爱,一谈到数,脑子里就涌现出好多数的问题,今天,小明想考考你对素数的认识。 问题是这样的:一个十进制数,如果是素数,而且它的各位数字和也是素数,则称之为“美素数”,如29,本身是素数,而且2+9 = 11也是素数,所以它是美素数。 给定一个... 阅读全文
posted @ 2018-12-06 23:41 black_hole6 阅读(236) 评论(0) 推荐(0)
摘要: 作为杭电的老师,最盼望的日子就是每月的8号了,因为这一天是发工资的日子,养家糊口就靠它了,呵呵 但是对于学校财务处的工作人员来说,这一天则是很忙碌的一天,财务处的小胡老师最近就在考虑一个问题:如果每个老师的工资额都知道,最少需要准备多少张人民币,才能在给每位老师发工资... 阅读全文
posted @ 2018-12-06 16:48 black_hole6 阅读(428) 评论(0) 推荐(0)
摘要: A number sequence is defined as follows: f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7. Given A, B, and n, you are to... 阅读全文
posted @ 2018-12-06 16:30 black_hole6 阅读(171) 评论(0) 推荐(0)
摘要: 今天终于发现了csdn可以操作的地方,有个自定义栏目的地方可以贴HTML代码(只允许最多一个自定义栏目),不能用JS插件有点难受,就贴了下自己的微信,并且可以直接点击图片发起会话以下是我的代码,可以将链接部分改成自己的:代码: 一个小白的WECHAT---------... 阅读全文
posted @ 2018-12-06 16:19 black_hole6 阅读(320) 评论(0) 推荐(0)
摘要: The three hands of the clock are rotating every second and meeting each other many times everyday. Finally, they get bored of this and... 阅读全文
posted @ 2018-12-06 15:44 black_hole6 阅读(194) 评论(0) 推荐(0)
摘要: The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers i... 阅读全文
posted @ 2018-12-06 14:48 black_hole6 阅读(141) 评论(0) 推荐(0)
摘要: Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action co... 阅读全文
posted @ 2018-12-06 10:31 black_hole6 阅读(176) 评论(0) 推荐(0)