码迷,mamicode.com
首页 >  
搜索关键字:while read line for ifs    ( 74720个结果
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-1' at line 1
SELECT * FROM `user` LIMIT 4,-1; 使用limit分页的时候,出现一个错误,官方说的是将这个bug修复了,这个以前是可以使用的 ...
分类:数据库   时间:2021-01-01 12:00:42    阅读次数:0
java的read方法
public class RandomAccessDemo6 { public static void main(String[] args) throws IOException { RandomAccessFile src = new RandomAccessFile("src.AVI", "r ...
分类:编程语言   时间:2020-12-31 12:33:36    阅读次数:0
简单题瞎扯
证明$y = \frac{1 - x}$ 在$(-\infty,1)$上的单调性。 暴力: 首先化简一下,\(y = \frac{x}{1 - x} = -1 + \frac{1}{1 - x}\) 设两点$x_1 < x_2$,且$x_1,x_2 \in (-\infty,1)$,作差: \[ f ...
分类:其他好文   时间:2020-12-31 12:24:21    阅读次数:0
Gym-102878L(枚举时间点+二分查找+O(1)找从某个位置到最后的中最大的)
题意:要组装一台电脑,需要n个配件,每个配件有m 种,每种给出一个使用寿命和价格,只要有一个配件到寿命电脑就不能使用,求最大的组成电脑总花费/电脑寿命,多个最大情况下输出最小的费用。题目:https://vjudge.net/problem/Gym-102878L 题解:给的寿命是有序的,那么找一个 ...
分类:其他好文   时间:2020-12-31 12:21:26    阅读次数:0
算法复习——动态规划
0-1背包问题、最大连续子数组问题、最长公共子序列、最长公共子串、最小编辑距离、钢条切割、矩阵链乘 动态规划问题的一般步骤: 给出问题的表示,明确子问题 分析最优结构,构造递推公式 确定计算顺序,依次求解问题 记录决策过程,输出最优方案 0-1背包 动规方程: 用$p[i,c]$表示前i个物品在背包 ...
分类:编程语言   时间:2020-12-31 12:05:20    阅读次数:0
变量与基本数据类型
嵌套取值操作 1. 请取出第一个学生的第一个爱好 students_info = [['egon', 18, ['play', ]], ['alex', 18, ['play', 'sleep']]] print(students_info[0][2][0]) 2. 针对字典,请取出取公司名 inf ...
分类:其他好文   时间:2020-12-31 12:02:21    阅读次数:0
阿里云Centos7 安装mysql5.7 报错:./mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
在阿里云服务器Centos7中安装mysql5.7,解压数据库初始化后,报错 ./mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or di ...
分类:数据库   时间:2020-12-31 11:58:26    阅读次数:0
在文件开始追加一行
在文件开始追加一行 1 使用sed(会改变文件编码为utf-8) find -name "*.cpp" -exec sed -i '1s@^@added line\n@' {} \; #sed insert append #第一行行前插入一行 sed -i '1i added line' main. ...
分类:其他好文   时间:2020-12-31 11:53:11    阅读次数:0
2019icpc ecfinal
##A City ##B Black and White ??? ##C Dirichlet \(k\)-th root !!! ##D Fire ??? ##E Flow !!! ##F Game ??? ##G Happiness ??? ##H King !!! ##I Moon ??? ## ...
分类:其他好文   时间:2020-12-31 11:47:17    阅读次数:0
Java基础之:List——ArrayList & Vector
Java基础之:List——ArrayList & Vector ArrayList简单介绍 ArrayList实现了List接口,底层是一个数组,并实现了可变的功能。底层属性(transient Object[] elementData;)在序列化时,忽略该属性。 ArrayList实现了List ...
分类:编程语言   时间:2020-12-31 11:46:33    阅读次数:0
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!