乱搞
文章平均质量分 60
elbadaernu
这个作者很懒,什么都没留下…
展开
-
Memory UESTC - 1262
题目描述 小x和小h是好盆友,小h从小体弱多病,而且还非常健忘,于是把自己平时吃的nn瓶药都给小x等人保管。某一天由于雾都的pm2.5爆表,小h的慢性呼吸道疾病又发作了,但当小x掏出药瓶的时候,却发现了异常情况。小x现在有n瓶药,每瓶药里面有无限个药片,每片药重量严格等于1克。但是,吹毛求疵的小x发现nn瓶药中有2瓶药的每一片药片在重量上是不合格的,不合格的药片比正常药片轻0.1g。小x现在有一个原创 2017-04-18 13:45:52 · 239 阅读 · 0 评论 -
codevs1009 产生数
题目描述 Description 给出一个整数 n(n<10^30) 和 k 个变换规则(k<=15)。 规则: 一位数可变换成另一个一位数: 规则的右部不能为零。 例如:n=234。有规则(k=2): 2-> 5 3-> 6 上面的整数 234 经过变换后可能产生出的整数为(包括原数): 234 534 264原创 2017-05-30 13:40:09 · 509 阅读 · 0 评论 -
K.Bro Sorting HDU - 5122 (思维题)
Matt’s friend K.Bro is an ACMer. Yesterday, K.Bro learnt an algorithm: Bubble sort. Bubble sort will compare each pair of adjacent items and swap them if they are in the wrong order. The process repeat原创 2017-09-05 16:07:08 · 359 阅读 · 0 评论 -
hdu6198 number number number(找规律+矩阵快速幂)
Problem DescriptionWe define a sequence F:⋅ F0=0,F1=1; ⋅ Fn=Fn−1+Fn−2 (n≥2).Give you an integer k, if a positive number n can be expressed by n=Fa1+Fa2+…+Fak where 0≤a1≤a2≤⋯≤ak, this positive number原创 2017-09-10 22:40:12 · 797 阅读 · 0 评论