水题
练习
呦呦n
这个作者很懒,什么都没留下…
展开
-
HDU - 1097 A hard puzzle(快速幂----或找规律)
Problem Descriptionlcy gives a hard puzzle to feng5166,lwg,JGShining and Ignatius: gave a and b,how to know the a^b.everybody objects to this BT problem,so lcy makes the problem easier than begin.t...原创 2018-08-18 18:17:43 · 166 阅读 · 0 评论 -
HDU - 2710 Max Factor(筛选质因子)
To improve the organization of his farm, Farmer John labels each of his N (1 <= N <= 5,000) cows with a distinct serial number in the range 1..20,000. Unfortunately, he is unaware that the cows ...原创 2018-08-16 15:23:58 · 338 阅读 · 0 评论 -
HDU - 2097 Sky数(简易版进制转换)
Sky从小喜欢奇特的东西,而且天生对数字特别敏感,一次偶然的机会,他发现了一个有趣的四位数2992,这个数,它的十进制数表示,其四位数字之和为2+9+9+2=22,它的十六进制数BB0,其四位数字之和也为22,同时它的十二进制数表示1894,其四位数字之和也为22,啊哈,真是巧啊。Sky非常喜欢这种四位数,由于他的发现,所以这里我们命名其为Sky数。但是要判断这样的数还是有点麻烦啊,那么现在请你帮...原创 2018-08-16 15:42:13 · 145 阅读 · 0 评论 -
HDU - 1014 Uniform Generator(gcd---最大公约数)
Computer simulations often require random numbers. One way to generate pseudo-random numbers is via a function of the formseed(x+1) = [seed(x) + STEP] % MODwhere '%' is the modulus operator.Such a ...原创 2018-08-21 20:49:32 · 159 阅读 · 0 评论 -
Supreme Number(找规律,打表)
A prime number (or a prime) is a natural number greater than 111 that cannot be formed by multiplying two smaller natural numbers.Now lets define a number NNN as the supreme number if and only if ea...原创 2018-09-09 08:50:19 · 313 阅读 · 0 评论 -
pta 1148 Werewolf - Simple Version
Werewolf(狼人杀) is a game in which the players are partitioned into two parties: the werewolves and the human beings. Suppose that in a game,player #1 said: "Player #2 is a werewolf."; player #2 said...原创 2018-11-09 19:59:25 · 649 阅读 · 0 评论 -
pta 1144 The Missing Number
Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list.Input Specification:Each input file contains one test case. For each case, the first line giv...原创 2018-11-08 08:50:24 · 160 阅读 · 0 评论 -
CodeForces - 732 D - Exams 二分贪心
Vasiliy has an exam period which will continue for n days. He has to pass exams on m subjects. Subjects are numbered from 1 to m.About every day we know exam for which one of m subjects can be passe...原创 2018-11-12 20:34:04 · 178 阅读 · 0 评论