题目描述:Description
Once upon a time there lived a king and he had N sons. And there were N beautiful girls in the kingdom and the king knew about each of his sons which of those girls he did like. The s...
分类:
其他好文 时间:
2016-05-12 15:35:22
阅读次数:
136
题目链接 题意:定义"beautiful number"为一个数n能整除所有数位上非0的数字 分析:即n是数位所有数字的最小公倍数的倍数。LCM(1到9)=2520。n满足是2520的约数的倍数。dp[len][val][lcm]一维为数的位数,一维为%2520的值(保存原数不可能,也没必要,252 ...
分类:
其他好文 时间:
2016-05-10 11:01:38
阅读次数:
299
from bs4 import BeautifulSoupimport requestsurl = 'http://bj.xiaozhu.com/fangzi/1508951935.html'wb_data = requests.get(url)soup = BeautifulSoup(wb_dat ...
分类:
编程语言 时间:
2016-05-07 18:25:12
阅读次数:
245
题目链接: http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=20885 题意: 求二维最长严格递增子序列。 题解: O(n^2)的算法很好想,不过这里会t掉,只能O(nlogn) 于是用二分来维护: 先把所有的数按x递增排序,x ...
分类:
其他好文 时间:
2016-05-07 06:33:51
阅读次数:
157
Park Visit Problem Description Claire and her little friend, ykwd, are travelling in Shevchenko's Park! The park is beautiful - but large, indeed. N f ...
分类:
其他好文 时间:
2016-05-04 22:43:28
阅读次数:
245
Ellipse Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Ellipse Description There is an beautiful ellipse whose curve equation is: ...
分类:
其他好文 时间:
2016-04-30 22:03:20
阅读次数:
145
What this book is about Neural networks are one of the most beautiful programming paradigms ever invented. In the conventional approach to programming ...
分类:
Web程序 时间:
2016-04-30 06:30:49
阅读次数:
290
今天写爬虫的时候,遇到了一个奇怪的问题,请求得到html内容之后,将对象使用Beautiful处理之后,竟然得到了空的内容。import requests
from bs4 import BeautifulSoupheaders = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like...
分类:
Web程序 时间:
2016-04-29 16:02:49
阅读次数:
1426
Game on Paper Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Game on Paper Description One not particularly beautiful evening V ...
分类:
其他好文 时间:
2016-04-28 22:33:49
阅读次数:
274
题目链接: I won't tell you this is about number theory Problem Description To think of a beautiful problem description is so hard for me that let's just d ...
分类:
其他好文 时间:
2016-04-27 22:15:01
阅读次数:
311