mybatis插值,数据提交事务回滚数据库值为空 通过sql日志查看sql为:INSERT INTO `quanxian`.`user` ( phone, email, password, times, name, age, address, sex, hobby, work ) VALUES (p ...
分类:
数据库 时间:
2020-06-25 13:58:55
阅读次数:
49
CodeForces 1320F Blocks and Sensors \(n \times m \times k\) 的三维空间内有若干个 $1\times 1\times1$ 的小格,每个格子要么为空,要么为第 \(a_{x,y,z}\) 种方块. 在三维空间的每一面都有若干个传感器,可以得到它 ...
分类:
其他好文 时间:
2020-06-25 09:58:46
阅读次数:
83
题意: 维护一个向量集合,在线支持以下操作: A x y:加入向量$(x,y)$。 Q x y L R:询问第L个到第R个加入的向量与向量$(x,y)$的点积的最大值。集合初始时为空。 $n\leq 4\times 10^{5}$。 题解: 令输入点为$(a,b)$,所求点为$(x,y)$,则所求最 ...
分类:
其他好文 时间:
2020-06-24 17:48:10
阅读次数:
38
1095 Cars on Campus (30分) Zhejiang University has 8 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers ...
分类:
编程语言 时间:
2020-06-24 00:20:12
阅读次数:
73
题目链接 点我呀 翻译 给你一个拼图, 问你能不能把它拼成一个 \(n \times m\) 的方格图。 题解 会发现, 只有 $2 \times 2$ 的能拼出来, 或者是一个长条形的。 往下或者往右一直延伸这样, 然后宽度或高度为1。 代码 #include<bits/stdc++.h> #de ...
分类:
其他好文 时间:
2020-06-21 19:26:05
阅读次数:
45
问题:同样的文件在台式机能编译出正常的PDF文件,但发现在另一个电脑上不能编译出PDF文件。 \documentclass[preprint,10pt,5p,times,twocolumn]{elsarticle} %% Use the option review to obtain double ...
分类:
其他好文 时间:
2020-06-21 14:01:01
阅读次数:
148
程序要输出一个url,里面的格式是这样的: http://127.0.0.1:8000/api?ver=2×tamp=20200620 输入后结果变成了 http://127.0.0.1:8000/api?ver=2xtamp=20200620 也就是说浏览器自动把 × 转成了 ...
分类:
其他好文 时间:
2020-06-20 18:34:00
阅读次数:
160
TATT 四维空间真是美妙。 现在有$n$个四维空间中的点,请求出一条最长的路径,满足任意一维坐标都是单调不降的。 注意路径起点是任意选择的,并且路径与输入顺序无关(路径顺序不一定要满足在输入中是升序)。 路径的长度是经过的点的数量,任意点只能经过一次。 \(n\leq 5\times 10^4\) ...
分类:
其他好文 时间:
2020-06-20 14:19:41
阅读次数:
48
Given a string S, consider all duplicated substrings: (contiguous) substrings of S that occur 2 or more times. (The occurrences may overlap.) Return a ...
分类:
其他好文 时间:
2020-06-20 13:20:54
阅读次数:
43
语法: for i in range(len(string): string[i:i+len(word)]解析:i取字符串下标,并且会向后移动,string去当前i值到定位字符长度位置的字符元素示例:判断字符个数 # def count_word2(string,word):# times = 0# ...
分类:
其他好文 时间:
2020-06-20 11:04:36
阅读次数:
41