上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: 蓝桥杯 地宫寻宝 X 国王有一个地宫宝库。是 n x m 个格子的矩阵。每个格子放一件宝贝。每个宝贝贴着价值标签。 地宫的入口在左上角,出口在右下角。 小明被带到地宫的入口,国王要求他只能向右或向下行走。 走过某个格子时,如果那个格子中的宝贝价值比小明手中任意宝贝价值都大,小明就可以拿起它(当然,也 阅读全文
posted @ 2019-01-28 22:25 *starry* 阅读(316) 评论(0) 推荐(0) 编辑
摘要: D - Balanced Number HDU - 3709 A balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specifically, 阅读全文
posted @ 2019-01-25 23:09 *starry* 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 不要62 HDU - 2089 杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。 杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。 不吉利的数字为所有含有4或62的号码。例如:  阅读全文
posted @ 2019-01-25 21:44 *starry* 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 小a与黄金街道 链接:https://ac.nowcoder.com/acm/contest/317/D 题解: 附上欧拉函数模板: (1)直接求小于或等于n,且与n互质的个数: int Euler(int n) { int ret=n; for(int i=2;i<=sqrt(n);i++) if 阅读全文
posted @ 2019-01-23 18:46 *starry* 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 蓝 桥 杯 带分数 100 可以表示为带分数的形式:100 = 3 + 69258 / 714 还可以表示为:100 = 82 + 3546 / 197 注意特征:带分数中,数字1~9分别出现且只出现一次(不包含0)。 类似这样的带分数,100 有 11 种表示法。 题目要求:从标准输入读入一个正整 阅读全文
posted @ 2019-01-22 11:21 *starry* 阅读(247) 评论(0) 推荐(0) 编辑
摘要: Resistors in Parallel 题目: ACM-ICPC Jiaozuo Onsite 2018 题解:因为题目数据范围很大,所以猜测应该是一个区间一个固定的最小值。问题转换成了如何求某个最小值影响的区间。坤神一眼看出,应该通过素数求,因为一个数的因子有很多,但是所有的因子都可以通过该数 阅读全文
posted @ 2018-12-10 09:11 *starry* 阅读(331) 评论(0) 推荐(0) 编辑
摘要: What time is it anyway? 524288K The \text{Frobozz Magic Clock Company}Frobozz Magic Clock Company makes 12-hour analog clocks that are always circular 阅读全文
posted @ 2018-12-08 21:14 *starry* 阅读(366) 评论(0) 推荐(0) 编辑
摘要: Marbles Gym - 101908B Using marbles as a currency didn't go so well in Cubicônia. In an attempt to make it up to his friends after stealing their marb 阅读全文
posted @ 2018-12-08 19:37 *starry* 阅读(508) 评论(0) 推荐(0) 编辑
摘要: CS Course HDU - 6186 Little A has come to college and majored in Computer and Science. Today he has learned bit-operations in Algorithm Lessons, and h 阅读全文
posted @ 2018-12-07 17:41 *starry* 阅读(270) 评论(0) 推荐(0) 编辑
摘要: Ilya Muromets Gym - 100513F Силачом слыву недаром — семерых одним ударом! From the Russian cartoon on the German fairy tale. Силачом слыву недаром — с 阅读全文
posted @ 2018-12-05 11:52 *starry* 阅读(434) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页