http://acm.hdu.edu.cn/showproblem.php?pid=6659 题意:给你d,x,让求满足f(d,n)=n的最大n(n<=x),其中f(d,n)表示数字d在从1到n的数中出现的总次数。 思路:网上真的是有一种神仙思路(找规律,推公式),显然如果f(d,x)=x那么答案就 ...
分类:
其他好文 时间:
2019-08-19 13:19:51
阅读次数:
105
Good Luck in CET-4 Everybody! HDU - 1847 题意:n 张牌( 1 <= n <= 1000),两个人轮流取牌,只能取2的幂次张牌 (即:1,2,4,8,16...),最后抓完牌的人获胜 题解:一堆,s数组取值为 2 ^ i (0 <= i <= 11) #inc ...
分类:
其他好文 时间:
2019-08-18 13:40:51
阅读次数:
90
VERB 怨恨;憎恶;愤恨If you resent someone or something, you feel bitter and angry about them. She resents her mother for being so tough on her... 她怨恨母亲对她太严厉。 ...
分类:
Web程序 时间:
2019-08-18 13:26:12
阅读次数:
105
K - Count the string HDU - 3336 题目链接:https://vjudge.net/contest/70325#problem/K 题目: It is well known that AekdyCoin is good at string problems as well ...
分类:
其他好文 时间:
2019-08-17 00:53:20
阅读次数:
79
HDU2176题意: m堆石子,两人轮流取.只能在1堆中取.取完者胜.先取者负输出No.先取者胜输出Yes,然后输出怎样取子. 通过 SG定理 我们可以知道每一个数的SG值,等于这个数到达不了的前面数中的最小值。本题题意和尼姆博弈一样,即可以在一堆中任意个石子,所以也就是说每个数都可以到达前面经过的 ...
分类:
编程语言 时间:
2019-08-13 11:49:32
阅读次数:
134
Algorithms: https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock/ Review: “How to write a good software design doc” by Angela Zhang https: ...
分类:
其他好文 时间:
2019-08-11 22:56:36
阅读次数:
117
【KMP】Censoring 题目描述 Farmer John has purchased a subscription to Good Hooveskeeping magazine for his cows, so they have plenty of material to read whil ...
分类:
其他好文 时间:
2019-08-11 01:00:11
阅读次数:
70
后台管理系统设计了多套主题皮肤,希望能随意切换主题风格。 在只有一套主题的时候,是在主页面上引入该主题样式: 切换主题,其实就是切换css路径中的default为不同主题的值。如切换到block主题,只需修改为: 每次切换主题,来修改此处的代码,然后再显然不是一个Good idea. 下面记录下自己 ...
分类:
其他好文 时间:
2019-08-10 13:52:51
阅读次数:
127
测试对象与json字符串的转换 json字符串转对象 Stringstr = "{\"id\":\"1001\",\"name\":\"Java入门\",\"price\":19.88,\"pnum\":100,\"category\":\"IT\",\"description\":\"Good B ...
分类:
Web程序 时间:
2019-08-02 12:41:04
阅读次数:
127
语法: 官方文档 If you’re familiar with Kibana’s old lucene query syntax, you should feel right at home with the new syntax. The basics stay the same, we’ve ...
分类:
其他好文 时间:
2019-08-01 13:05:51
阅读次数:
425