You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number ...
分类:
其他好文 时间:
2020-07-12 18:48:43
阅读次数:
50
@Test public void test1(){ File file1 = new File("/Users/truman/Desktop/Life"); System.out.println(file1); System.out.println(file1.isDirectory()); Fi ...
分类:
编程语言 时间:
2020-07-12 12:26:01
阅读次数:
67
Created by Jerry Wang, last modified on Oct 03, 2016 When you choose "Alternative ID Type" in search Criteria view, the corresponding ID type will be ...
分类:
其他好文 时间:
2020-07-12 10:43:26
阅读次数:
118
2020/7/11 今天学习了匿名对象,与c++相比这也是一个多出来的知识点, (1)如果对一个对象只需要进行一次方法调用,那么就可以使用匿名对象。 (2)将匿名对象作为实参传递给一个方法调用。如一个程序中有一个getSomeOne()方法要接收一个MyClass类对象作为参数。 疑惑:缺省访问控制 ...
分类:
编程语言 时间:
2020-07-11 22:58:21
阅读次数:
85
POJ2279 Mr. Young's Picture Permutations 有N个学生合影,站成左对齐的k排,每行分别有N1,N2…NK个人,第一排站最后,第k排站之前。学生身高依次是1…N。在合影时候要求每一排从左到右递减,每一列从后面到前也递减,一共有多少总方案 Input 输入每组测试数 ...
分类:
其他好文 时间:
2020-07-11 12:37:35
阅读次数:
71
A string s is called an (k,l)-repeat if s is obtained by concatenating k>=1 times some seed string t with length l>=1. For example, the string s = aba ...
分类:
其他好文 时间:
2020-07-11 00:16:01
阅读次数:
65
【问题描述】 Failed with error: dst refspec 1.9.3-20100630 matches more than one. failed to push some refs to 'git@xxxxxx.git' 【问题根源】 tag名字和分支名字一样 【解决方案】 删除 ...
分类:
其他好文 时间:
2020-07-10 15:10:11
阅读次数:
59
临时使用 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package 默认使用 # windows系统使用cmd快速设置 pip install pip -U # 升级pip到最新版本 pip config set glo ...
分类:
其他好文 时间:
2020-07-10 11:31:59
阅读次数:
180
一、修改源数组 以下所有方法都是在操作源数组 1.1 some()方法 根据条件修改源数组中的元素 let persons = [ {name:'langkye',age:18}, {name:'alex',age:20}, ]; persons.some((person)=>{ if(person ...
分类:
编程语言 时间:
2020-07-10 11:21:29
阅读次数:
88
Just curious where you saw error code 2 is incorrect usage of command? The documentation indicates that it's one of the following: All or some rows re ...
分类:
数据库 时间:
2020-07-09 15:00:59
阅读次数:
67