A 旅行 题面: "bzoj" 题解:神奇的$dp$ 先按长度把边排序 指定必须走前$l$条边,枚举$l$ 设$dis[i][j][k]$表示当前到了$i$节点,已走过了$j$条前$l$条边,用了$k$次交换次数 "code" B 找零钱的洁癖 题面: "bzoj" 题解:更为神奇 首先直接bfs, ...
分类:
Web程序 时间:
2020-02-01 23:40:49
阅读次数:
143
1 """ 2 Given the head of a linked list, we repeatedly delete consecutive sequences of nodes that sum to 0 until there are no such sequences. 3 4 Afte ...
分类:
其他好文 时间:
2020-02-01 23:18:44
阅读次数:
83
表格删除案例 //1. 找到清空按钮,注册点击事件,清空tbody $("#btn").on("click", function () { $("#j_tb").empty(); }); //2. 找到delete,注册点击事件 $("#j_tb").on("click", ".get", func ...
分类:
Web程序 时间:
2020-02-01 23:02:03
阅读次数:
138
通过query关键字可以对数据库中的表进行查询。 示例:在world数据库中,执行“select * from city limit 5;”,这条sql语句。 connect to database using custom params pymysql database='world',user= ...
分类:
数据库 时间:
2020-02-01 22:58:49
阅读次数:
96
「JSOI2014」序列维护 "传送门" 其实这题就是 "luogu的模板线段树2" ,之所以要发题解就是因为被 $\color{black}{\text{M}} \color{red}{\text{_sea}}$ 告知了一种比较NB的 $\text{update}$ 的方式。 我们可以把修改操作统 ...
分类:
Web程序 时间:
2020-02-01 21:39:02
阅读次数:
84
使用注解方式配置sql语句,不需要写对应的UserMapper.xml package com.mapper; import java.util.List; import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.a ...
分类:
数据库 时间:
2020-02-01 19:26:49
阅读次数:
82
一、插入 二、修改 mysql / 1. 修改单表记录 语法: update 表名 set 列名=新值, 列名=新值... where 筛选条件; 2. 修改夺标的记录 sql 192语法: update 表1 as 别名, 表2 as 别名 set 列=值, ... where 筛选条件 and ...
分类:
数据库 时间:
2020-02-01 16:32:41
阅读次数:
93
查询 DBSession.query('表名').all() # 查询全部 DBSession.query('表名').filter(字段名=查询值).all() # 查询字段名是查询值的所有数据 DBSession.query('表名‘).count() # 查询表里一共有多少数据 DBSessi ...
分类:
数据库 时间:
2020-02-01 15:57:54
阅读次数:
82
1 引入命名空间 using system.IO 2写入文件文件 [1] 创建文件流 FileStream fs=new FileStream("G:\\myfile.txt",FileMode.Create); [2]创建写入器 StramWriter sw=new streamWriter(fs ...
分类:
其他好文 时间:
2020-02-01 13:00:41
阅读次数:
101
数据初始化db.inventory.insertMany( [ { item: "journal", qty: 25, size: { h: 14, w: 21, uom: "cm" }, status: "A" }, { item: "notebook", qty: 50, size: { h: ... ...
分类:
其他好文 时间:
2020-02-01 12:37:31
阅读次数:
72