码迷,mamicode.com
首页 >  
搜索关键字:dig    ( 2020个结果
洛谷.3803.[模板]多项式乘法(FFT)
题目链接: "洛谷" 、 "LOJ" . FFT相关: "快速傅里叶变换(FFT)详解" 、 "FFT总结" 、 "从多项式乘法到快速傅里叶变换" . cpp include include include include define gc() getchar() const int N=1e6+ ...
分类:其他好文   时间:2018-02-13 10:28:37    阅读次数:214
【easy】479. Largest Palindrome Product
Find the largest palindrome made from the product of two n-digit numbers Since the result could be very large, you should return the largest palindrom ...
分类:其他好文   时间:2018-02-12 16:49:24    阅读次数:130
Python: 字符串搜索和匹配,re.compile() 编译正则表达式字符串,然后使用match() , findall() 或者finditer() 等方法
1. 使用find()方法 >>> text = 'yeah, but no, but yeah, but no, but yeah' >>> text.find('no')10 2. 使用re.match() 对于复杂的匹配需要使用正则表达式和re 模块。为了解释正则表达式的基本原理,假设想匹配数 ...
分类:编程语言   时间:2018-02-12 15:18:39    阅读次数:516
Python 加密解密
# -*- coding: utf-8 -*- import hashlib ''' 加密解密 ''' #MD5是最常见的摘要算法,速度很快,生成结果是固定的128 bit字节, # 通常用一个32位的16进制字符串表示。 md5 = hashlib.md5() update = md5.updat... ...
分类:编程语言   时间:2018-02-12 13:55:12    阅读次数:144
Centos查看外网IP
Curl 纯文本格式输出: curl JSON格式输出: curl XML格式输出: curl 得到所有IP细节 (挖掘机) 使用 DYDNS (当你使用 DYDNS 服务时有用) 使用 Wget 代替 Curl 使用 host 和 dig 命令 如果有的话,你也可以直接使用 host 和 dig ...
分类:其他好文   时间:2018-02-12 13:42:04    阅读次数:171
程序练习2:购物车程序
程序练习2:购物车程序 需求: ...
分类:其他好文   时间:2018-02-11 20:07:29    阅读次数:113
bzoj千题计划232:bzoj4727: [POI2017]Turysta
http://www.lydsy.com/JudgeOnline/problem.php?id=4727 竞赛图tarjan缩点后得到的拓扑图一定是一条链 因为竞赛图任意两点的前后顺序确定,只有一种拓扑序列 竞赛图tarjan缩完点后,若出现强联通分量A和B 那么A中所有点 和 B中所有点的连边 要 ...
分类:其他好文   时间:2018-02-11 14:28:52    阅读次数:209
Dig A Well For Yourself
See Paul's essay: , I found paul is a genius, double checking. Mars June 2015 See Paul's essay: , I found paul is a genius, double checking. Mars June ...
分类:其他好文   时间:2018-02-11 10:49:12    阅读次数:165
cart_购物车小程序
1 #author:leon 2 product_list= [ 3 ('iphone',5800), 4 ('mac pro',9800), 5 ('bike',800), 6 ('watch',6000), 7 ('coffee',31), 8 ('book',120) 9 ] 10 shopp... ...
分类:其他好文   时间:2018-02-09 15:23:43    阅读次数:164
python常用命令和基础运算符
基础运算符 http://www.cnblogs.com/alex3714/articles/5465198.html 身份运算符:is is not成员运算符:in not in ##in 判断元素是否存在该队列中 存在返回Turea= "abc"print("b" in a) num += 1 ...
分类:编程语言   时间:2018-02-09 14:55:24    阅读次数:299
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!