Python基础语法二 python变量 标准数据类型 在python中定义了五个标准的数据类型,以后的编写代码过程中定然离不开这五种数据类型。 numbers(数字类型) String(字符串类型) List(列表类型) Tuple(元祖类型) Dictionary(字典类型) 在数字类型中,py ...
分类:
编程语言 时间:
2020-01-11 13:40:01
阅读次数:
94
Description The branch of mathematics called number theory is about properties of numbers. One of the areas that has captured the interest of number t ...
分类:
其他好文 时间:
2020-01-11 13:16:46
阅读次数:
102
输入函数 int word; Scanner in = new Scanner(System.in) word = in.nextInt(); 输出函数 System.out.println(); 数组创建 int[] numbers = new int[10]; 函数定义 public stati ...
分类:
编程语言 时间:
2020-01-10 20:24:23
阅读次数:
97
Let‘s Encrypt 获取Https证书 假设安装目录:/root/letsencrypt1.cd root目录安装git yum -y install git2.输入 git clone https://github.com/letsencrypt/letsencrypt3.cd letse ...
分类:
其他好文 时间:
2020-01-09 19:08:25
阅读次数:
109
1.使用nload yum install -y gcc gcc-c++ ncurses-devel make wgetwget http://www.roland-riegel.de/nload/nload-0.7.4.tar.gztar zxf nload-0.7.4.tar.gz && cd ...
分类:
系统相关 时间:
2020-01-07 22:49:34
阅读次数:
149
"Angry Students" "Hyperset" "Garland" "Numbers on Tree" Angry Students $$ Time Limit: 1 s\quad Memory Limit: 256 MB $$ 计算每一个 $A$ 后面有多少个连续的 $P$,然后取最大。 ...
分类:
其他好文 时间:
2020-01-07 22:35:05
阅读次数:
95
http://codeforces.com/contest/1287/problem/D 思路: 1. 每个子树维护一个数组,包含所有节点的编号和值,且按值排序。 2. 每个子子树的数组需要合并到父节点表示的父子树中,合并需要维护按照值的递增顺序。 3. 所有子子树合并到当前节点表示的父子树中后需要 ...
分类:
其他好文 时间:
2020-01-07 16:04:12
阅读次数:
65
"https://leetcode cn.com/problems/add two numbers/" 代码如下: ...
分类:
其他好文 时间:
2020-01-07 00:48:56
阅读次数:
62
https://codeforces.com/contest/1287/ A Angry Students D Numbers on Tree 题意:给一棵有根树,规定每个数的子树中有多少个节点的val比根节点的严格小。给这棵树填上任意一种合法的val(每个值都在[1,10^9]且满足上一句话)或报 ...
分类:
其他好文 时间:
2020-01-06 12:33:58
阅读次数:
61
第一课创建和使用字典#创建和使用字典#我们以前讲过2种序列:1列表2元组#共同点:都是通过索引引用元素值#不同点:列表是可读写的,元组是只读的names=["Bill","Mike","John","Mary"]numbers=["1234","4321","6789","6543"]print(numbers[names.index("Mike")])#4321通过names中的Mike的索引位
分类:
其他好文 时间:
2020-01-06 11:09:55
阅读次数:
138