Codeforces 1091E 题意:给定n个点的度数,请你添加第n+1个点,输出所有可能的第n+1个点的度数 做法:1. 查看 "链接" 知道了下面这个定理 A sequence of non negative integers $ d_1\geq\cdots\geq d_n$ can be r ...
分类:
其他好文 时间:
2018-12-31 22:37:52
阅读次数:
310
python的random模块(生成验证码) random模块常用方法 演示 random.random() random.randint(a, b) random.randrange([start], stop[, step]) random.choice(sequence) random.sam ...
分类:
编程语言 时间:
2018-12-31 17:30:52
阅读次数:
202
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or ...
分类:
其他好文 时间:
2018-12-31 17:15:19
阅读次数:
123
题目链接:http://codeforces.com/contest/1095/problem/E 解题心得: 刚开始拿到这个题的时候还真的没什么思路,后来仔细想想还是比较简单的。首先题目要求翻转一个括号就要达到符合括号的匹配规则,那么在匹配完符合条件的括号之后有多出的两个括号向左或者向右。 其次从 ...
分类:
其他好文 时间:
2018-12-30 22:14:58
阅读次数:
224
描述 Given a sequence, we define the seqence's value equals the difference between the largest element and the smallest element in the sequence. As an e ...
分类:
其他好文 时间:
2018-12-30 17:34:19
阅读次数:
213
一级标题 二级标题 三级标题 四级标题 五级标题 六级标题 一级标题 无序 无序 无序 无序 1. 有序 2. 有序 3. 有序 4. 有序 这里是引用 利用 标识这里是引用 插入链接 "baidu" 插入图片 这里是粗体 这里是斜体 ==表格比较复杂点== header 1 | header 2| ...
分类:
其他好文 时间:
2018-12-29 23:22:49
阅读次数:
218
Problem Description Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7 ...
分类:
其他好文 时间:
2018-12-29 19:43:18
阅读次数:
178
【程序描述】 编写一个程序,实现斐波那契数列。 【程序分析】 斐波那契数列(Fibonacci sequence),又称黄金分割数列,指的是这样一个数列:0、1、1、2、3、5、8、13、21、34、……。 在数学上,费波那契数列是以递归的方法来定义: F0 = 0 (n=0) F1 = 1 (n= ...
分类:
其他好文 时间:
2018-12-28 22:23:02
阅读次数:
247
Python join()方法 Python join()方法用于将序列中的元素以指定的字符连接生成一个新的字符串。 #例如:列表 -- 字符串 str.join(sequence) 参数: sequence -- 要连接的元素序列。 如果传入参数为字典,只对键进行连接 Python split() ...
分类:
编程语言 时间:
2018-12-28 16:05:11
阅读次数:
160
--导出过程 1、查看目录: select * from dba_directories; 2、将目录的操作权限赋值给指定的用户(不执行次步骤可能会出现权限问题): grant read,write on directory EXPDP_DIR to username; 3、执行导出脚本: expd ...
分类:
数据库 时间:
2018-12-28 14:35:00
阅读次数:
227