7-1 阅览室,感觉思路还好,但是写的太繁琐了,借鉴一下过的代码,又写了一遍;,代码: #include<bits/stdc++.h> using namespace std; int s[1010],w[1010]; int main() { int n; cin>>n; while(n--) { ...
分类:
其他好文 时间:
2020-11-26 14:11:33
阅读次数:
3
package com.spinlock.spinlock.juc; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; public class Demo3 { publi ...
分类:
其他好文 时间:
2020-11-25 12:40:31
阅读次数:
5
实现 strStr() 函数。 给定一个 haystack 字符串和一个 needle 字符串,在 haystack 字符串中找出 needle 字符串出现的第一个位置 (从0开始)。如果不存在,则返回 -1。 示例 1: 输入: haystack = "hello", needle = "ll" ...
分类:
其他好文 时间:
2020-11-25 12:19:34
阅读次数:
5
1.导入jar包 mysql-connector-java-5.1.7-bin.jar。并加入到环境中。 2.注册驱动,获取连接 //注册驱动 Class.forName("com.mysql.jdbc.Driver");//com.mysql.jdbc.Driver mysql驱动 //获取链接 ...
分类:
数据库 时间:
2020-11-25 12:17:02
阅读次数:
8
A.快速排序 1.算法逻辑 若要对 def quick_sort(alist,first,last): if first >= last: # 递归结束条件 return high = last low = first media_data = alist[first] while low < hi ...
分类:
编程语言 时间:
2020-11-25 12:12:17
阅读次数:
8
print str('\345\207\235\346\266\265\346\237\217').decode('string_escape')凝涵柏 但该语句在python3中无法运行 File "script.py", line 3print str('\345\207\235\346\266 ...
分类:
编程语言 时间:
2020-11-25 12:06:28
阅读次数:
10
解题思路 三指针,一个指向前半部分待插入位置,一个指向后半部分待插入位置,最后一个从前往后遍历 代码 /** * Definition for singly-linked list. * public class ListNode { * public int val; * public ListN ...
分类:
其他好文 时间:
2020-11-25 12:06:05
阅读次数:
7
[2020-11-20 15:39:11,703] [16792 XNIO-1 task-1(io.undertow.request) : ERROR]io.undertow.servlet.api.LoggingExceptionHandler.handleThrowable(LoggingExc ...
分类:
编程语言 时间:
2020-11-24 12:44:38
阅读次数:
7
__int128 是比 long long 还要大的数据类型(\(max = 2^{128}-1\)) 其输入和输出不能用常规方法,用 read() 和 write() 函数代替 #include<bits/stdc++.h> using namespace std; __int128 read(i ...
分类:
其他好文 时间:
2020-11-24 12:37:39
阅读次数:
6
catcache代码位于src/backend/utils/cache/catcache.c,包含了对SysCache结构体的初始化和数据结构之间指针关系的链接以及操作。最重要的是提供了两个函数:精确匹配SearchCatCache和部分匹配SearchCatcacheList。提供的静态函数如下, ...
分类:
系统相关 时间:
2020-11-24 12:37:15
阅读次数:
10