http://codeforces.com/problemset/problem/954/G 二分答案 检验的时候,从前往后枚举,如果发现某个位置的防御力<二分的值,那么新加的位置肯定是越靠后越好 差分即可 ...
分类:
其他好文 时间:
2018-03-22 19:26:26
阅读次数:
221
temp = input("请输入一个年份:") while not temp.isdigit(): print("您的输入不合法") temp = input("请输入一个年份:") year = int(temp) if (year %4==0 and year %100 !=0) or yea... ...
分类:
其他好文 时间:
2018-03-22 17:29:04
阅读次数:
131
描述: 用于加密相关的操作,代替了md5模块和sha模块,主要提供SHA1,SHA224,SHA256,SHA384,SHA512,MD5算法。在python3中已经废弃了md5和sha模块,简单说明下md5和sha的使用。 什么是摘要算法呢? 摘要算法又称为哈希算法,散列算法。它通过一个函数,把任 ...
分类:
编程语言 时间:
2018-03-21 23:16:49
阅读次数:
233
转 </form> </form> </form> </form> 原文: 分享我在阿里工作十年接触过Java框架设计模式一、前言说起来设计模式,大家应该都耳熟能详,设计模式代表了软件设计的最佳实践,是经过不断总结提炼出来的代码设计经验的分类总结,这些模式或者可以简化代码,或者可以是代码逻辑开起来清 ...
分类:
编程语言 时间:
2018-03-21 00:08:39
阅读次数:
240
现象如下: 解决方法是在 启动的时候加入 noload Welcome 参数 也可以在 ~/.local/share/applications/DigiaQt qtcreator community.desktop 里面的的 Exec 里面后面加入 noload Welcome 参数 ,如下: ...
分类:
系统相关 时间:
2018-03-20 10:35:46
阅读次数:
2047
1081. 检查密码 (15) 本题要求你帮助某网站的用户注册模块写一个密码合法性检查的小功能。该网站要求用户设置的密码必须由不少于6个字符组成,并且只能有英文字母、数字和小数点".",还必须既有字母也有数字。 输入格式: 输入第一行给出一个正整数 N(<=100),随后 N 行,每行给出一个用户设 ...
分类:
其他好文 时间:
2018-03-20 00:41:57
阅读次数:
239
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 palindro ...
分类:
其他好文 时间:
2018-03-18 21:41:39
阅读次数:
101
线段树嘛~本蒟蒻都会,不予解释。。。#include #include using namespace std; int n,m,tr[102][304][305],a[305][305]; inline int read(){ char ch=getchar();int k=0; while(!i... ...
分类:
其他好文 时间:
2018-03-18 18:38:23
阅读次数:
147
Description In mathematics, a square number is an integer that is the square of an integer. In other words, it is the product of some integer with its ...
分类:
其他好文 时间:
2018-03-17 16:16:01
阅读次数:
151
代理服务器后面有多个web服务器upstream模块dig命令域名解析编辑新配置文件ip_hash同一个用户保持在一个机器上不支持去代理httpsssl原理https是加密的传输每次传输都是随机的生成SSL密钥对生成密钥转换key去掉密钥密码-in指定密钥-out指定输出生成请求文件名字可以自己定义生成公钥文件-days证书日期配置nginxssl编辑新配置文件监听端口443创建root目录检测语
分类:
其他好文 时间:
2018-03-16 23:46:13
阅读次数:
219