Integer.toHexString() 将数字转化为16进制表示 例: 170->aa; Scanner类 字符串输入--s.next()、s.nextLine()方法 next()方法读取到空白符就结束;nextLine()读取到回车结束也就是“\r” 输入有多组数据,没有说明输入几组数据,每 ...
分类:
其他好文 时间:
2021-03-09 13:27:59
阅读次数:
0
试了好多种,这个方法蛮好用的。有更好的,希望大家多多指教。 Dim ProNo As Integer, ProStr As String ProNo = IsRunning("SSS.exe") If ProNo = 0 Then Shell App.path & "\SSS.exe '" & st ...
分类:
其他好文 时间:
2021-03-09 13:17:05
阅读次数:
0
###1.我的解题代码 class Solution { public boolean containsDuplicate(int[] nums) { boolean flag = false; HashSet<Integer> set = new HashSet<>(); for(int i:nu ...
分类:
编程语言 时间:
2021-03-09 12:58:00
阅读次数:
0
无向图 我们用邻接图来表示图 具体实现的代码 public class Graph { private final int V; private int E; private Bag<Integer>[] adj; public Graph(int V){ this.V = V; E = 0; ad ...
分类:
其他好文 时间:
2021-03-08 14:20:08
阅读次数:
0
包装类 基本数据类型所对应的引用数据类型 0bject可统一所有数据,包装类的默认值是null 包装类对应 基本数据类型 包装类型 byte Byte short Short int Integer long Long float Float double Double boolean Boolea ...
分类:
其他好文 时间:
2021-03-08 14:18:04
阅读次数:
0
Integer max = null; //今天天气阴 for (int i = 0; i < nums.length; i++) { boolean change = false; //我拿着雨伞来到青浦图书馆,当然这里j虽然是从比i大一个数的地方开始自增 //但最后也需要将数字从开始的地方开始自 ...
分类:
其他好文 时间:
2021-03-08 13:50:41
阅读次数:
0
The magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning that when you use this coupon with a produc ...
分类:
其他好文 时间:
2021-03-06 14:44:48
阅读次数:
0
水~。 注意右半部为$0$的情况。 int main() { int T; cin>>T; while(T--) { string s; cin>>s; string a=s.substr(0,s.size()/2),b=s.substr(s.size()/2); int ts=stoi(s),ta ...
分类:
其他好文 时间:
2021-03-04 13:05:25
阅读次数:
0
Given an array of integers nums and an integer target. Return the number of non-empty subsequences of nums such that the sum of the minimum and maximu ...
分类:
其他好文 时间:
2021-03-03 12:23:05
阅读次数:
0
泛型 1.什么是泛型 1.1泛型概念:Java泛型是J2 SE1.5中引入的一个新特性,其本质是参数化类型,也就是说所操作的数据类型被指定为一个参数(type parameter), 这种参数类型可以用在类、接口和方法的创建中,分别称为泛型类、泛型接口、泛型方法。 1.2本质:参数化类型 1.3语法 ...
分类:
其他好文 时间:
2021-03-02 12:20:03
阅读次数:
0