Java的特性和优势 1.简单性 2.面对对象 3.可以执行 4.高性能 5.分布式 6.动态性 7.多线程 8.安全性 9.健壮性 java的三大版本 JavaSE:标准版 (桌面程序,控制台开发...) JavaME:嵌入型开发 (手机、小家电...) JavaEE:企业级开发 (web端,服务 ...
分类:
编程语言 时间:
2021-02-20 11:45:39
阅读次数:
0
题目描述: 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,数组中同一个元素不能使用两遍。 示例: 给定 nums = [2, 7, 11, 15], target = 9 因为 ...
分类:
其他好文 时间:
2021-02-19 13:36:23
阅读次数:
0
0 引言 本文将常用的指令记录下来,以备查询。 1 git Command Meaning Reference Linking git status view all files' state, tracked or untracked, commited or un commited git st ...
分类:
系统相关 时间:
2021-02-19 13:10:17
阅读次数:
0
循环结构 while循环结构 编程是为了解决人的问题 while是最基本的循环,他的结构为: while(布尔表达式){ //循环内容 } 只要布尔表达式为true,循环就会一直执行下去。 比如说while(true),就会一直表达true。 我们大多数情况是会让循环停下来,我们需要一个让表达式失效 ...
分类:
其他好文 时间:
2021-02-19 12:54:54
阅读次数:
0
1、 aaa = "123" answer = input("please input the answer:") while True: if answer == aaa: break answer = input("please input the answer,again:") print(" ...
分类:
编程语言 时间:
2021-02-18 13:38:19
阅读次数:
0
树套树(splay套线段树) -AcWing 2476 本来想着用multiset套线段树的,结果一直T。改成常数小的splay才过,写完人都傻了^^ /* splay套线段树 */ #include <bits/stdc++.h> using namespace std; const int N ...
文章搬运,原文链接 switch case 语句判断一个变量与一系列值中某个值是否相等,每个值称为一个分支。 语法 switch case 语句语法格式如下: switch(expression){ case value : //语句 break; //可选 case value : //语句 br ...
分类:
编程语言 时间:
2021-02-18 13:32:17
阅读次数:
0
题意 $a_$以及$b_i$都是$0/1$ 方法 异或运算可以看成是不进位的加法,因此直接高斯消元即可 代码 #include <iostream> #include <cstdio> #include <cstring> using namespace std; const int N = 110 ...
分类:
其他好文 时间:
2021-02-18 13:19:39
阅读次数:
0
解决C++编译程序后闪退的方法 1)在return 0;前添加一条while(1); 2)编译不直接用F5,而是Ctrl+F5。 以上两种方法皆可解决。 ...
分类:
编程语言 时间:
2021-02-18 13:15:50
阅读次数:
0
思路1: 暴力枚举。 实现1: 1 class Solution 2 { 3 public: 4 int findKthPositive(vector<int>& arr, int k) 5 { 6 int n = arr.size(); 7 vector<int> cnt(2001, 0); 8 ...
分类:
其他好文 时间:
2021-02-18 12:54:30
阅读次数:
0