一、常见subprocess方法 1、subprocess.getstatusoutput(cmd) 官方解释: Return (exitcode, output) of executing cmd in a shell.Execute the string 'cmd' in a shell wit ...
分类:
编程语言 时间:
2018-10-18 18:14:57
阅读次数:
185
Description 有一棵点数为 N 的树,以点 1 为根,且树点有边权。然后有 M 个操作,分为三种:操作 1 :把某个节点 x 的点权增加 a 。操作 2 :把某个节点 x 为根的子树中所有点的点权都增加 a 。操作 3 :询问某个节点 x 到根的路径中所有点的点权和。 Input 第一行包 ...
分类:
其他好文 时间:
2018-10-18 10:51:06
阅读次数:
144
Given a list of sorted characters letterscontaining only lowercase letters, and given a target letter target, find the smallest element in the list th ...
分类:
其他好文 时间:
2018-10-18 01:17:00
阅读次数:
132
Given an array of strings, group anagrams together. Example: Input: ["eat", "tea", "tan", "ate", "nat", "bat"], Output: [ ["ate","eat","tea"], ["nat", ...
分类:
其他好文 时间:
2018-10-18 01:14:09
阅读次数:
145
1.java环境 注意:tomcat要在java环境下 安装jdk(java必须要的)编写一个test脚本,检测 tar zxf jdk-7u79-linux-x64.tar.gz -C /usr/local/ cd /usr/local/ ls ln -s jdk1.7.0_79/ java cd ...
分类:
系统相关 时间:
2018-10-18 01:05:08
阅读次数:
168
JavaI/O:使用InputStreamReader和BufferedReader实现控制器输入输出
分类:
编程语言 时间:
2018-10-18 00:56:02
阅读次数:
147
JavaI/O:使用Properties来解析配置文件
分类:
编程语言 时间:
2018-10-18 00:49:20
阅读次数:
179
1022: 求三角形的面积 时间限制:1秒 内存限制:128MB 提交:109 正确:94 题目描述 给出三角形的三条边,求三角形的面积。 输入 输入三角形的三条边长(实数),数据之间用空格隔开。 输出 输出三角形的面积,结果保留2位小数。 样例输入 Copy Sample Input 2.5 4 ...
分类:
其他好文 时间:
2018-10-17 21:15:29
阅读次数:
255
Given a collection of distinct integers, return all possible permutations. Example: AC code: Runtime: 12 ms, faster than 42.11% of C++ online submissi ...
分类:
其他好文 时间:
2018-10-17 14:58:35
阅读次数:
152
Give you a sequence of N(N≤100,000)N(N≤100,000) integers : a1,...,an(0<ai≤1000,000,000)a1,...,an(0<ai≤1000,000,000). There are Q(Q≤100,000)Q(Q≤100,000 ...
分类:
其他好文 时间:
2018-10-17 11:01:09
阅读次数:
156