摘要:
map的基本操作: map的初始化: Map<String,Integer> map=new HashMap<>(); map的插入 map.put("jesse",180); map的删除 map.remove("caixukun"); map清空 map.clear(); 依据key,获取val 阅读全文
posted @ 2020-04-14 16:30
JesseKwok
阅读(130)
评论(0)
推荐(0)
摘要:
java 的PriorityQueue 以最小堆为默认方式,而c++默认方式是最大堆。 import java.util.*; public class Jesse{ public static void main(String[] args) { Queue<Integer> que=new Pr 阅读全文
posted @ 2020-04-14 14:13
JesseKwok
阅读(131)
评论(0)
推荐(0)
摘要:
java.util.Stack<E> import java.util.LinkedList;import java.util.Queue;import java.util.Stack;public class Jesse{ public static void main(String[] args 阅读全文
posted @ 2020-04-14 11:39
JesseKwok
阅读(1280)
评论(0)
推荐(0)
摘要:
https://nanti.jisuanke.com/t/T3174 0<m<10^1000 范围太大,不能用long long(大概1e20) ,因此使用string的字典序比较。(原题long double 也可以过) #include <iostream> #include <string> 阅读全文
posted @ 2020-04-14 11:02
JesseKwok
阅读(194)
评论(0)
推荐(0)
摘要:
//queue 的基本用法import java.util.LinkedList;import java.util.Queue;public class Jesse{ public static void main(String[] args) { Queue<Integer> que=new Li 阅读全文
posted @ 2020-04-14 10:39
JesseKwok
阅读(350)
评论(0)
推荐(0)

浙公网安备 33010602011771号