摘要: #include<iostream> using namespace std; void makePrefixTable(string pattern,int prefix[],int size){ //我们都是生活在阴沟里的人,但仍有人仰望星空。 //永远相信美好的事情明天即将发生。 prefix 阅读全文
posted @ 2021-08-26 11:43 seonwee 阅读(95) 评论(0) 推荐(0)
摘要: typedef struct item{ int to; int next; int w; }Item; Item E[MAXN]; void addEdge(int u,int v,int w){ E[cnt].to = v; E[cnt].w = w; E[cnt].next = head[u] 阅读全文
posted @ 2021-08-21 22:44 seonwee 阅读(40) 评论(0) 推荐(0)
摘要: 落谷p1226 理论依据 #include<iostream> #include<cstdio> using namespace std; long long fun(long long a,long long b,long long c){ long long An = 1; long long 阅读全文
posted @ 2021-08-21 22:41 seonwee 阅读(50) 评论(0) 推荐(0)
摘要: 落谷题目p1993 #include<iostream> #include<cstdio> using namespace std; typedef struct item { /* data */ int u; int v; int w; }Item; Item a[5000+5]; int n, 阅读全文
posted @ 2021-08-20 12:13 seonwee 阅读(52) 评论(0) 推荐(0)
摘要: 语法: select 查询列表 from 表名 where 筛选条件; 分类: 一、按条件表达式筛选 简单条件运算符:> < = != <> >= <= 二、按逻辑表达式筛选 逻辑运算符: 作用:用于连接条件表达式 && || ! and or not &&和and:两个条件都为true,结果为tr 阅读全文
posted @ 2021-03-16 22:08 seonwee 阅读(56) 评论(0) 推荐(0)
摘要: - 在mysql中,+ 号仅有一个功能 -> 进行运算,没有Java中字符串的拼接功能 - 1.当一个数字与字符进行加法时,字符转换成数值失败就转换成0相加 - 2.当其中一个值为null时,结果为NUll ###1.情况1 ###2.情况2 阅读全文
posted @ 2021-03-16 21:47 seonwee 阅读(336) 评论(0) 推荐(0)
摘要: ###1.查看mysql当前的版本号 select version(); #登录后执行 mysql --version #命令行 mysql -V #命令行 ###2.创建表 create table 表名( 字段名 字段类型, ... ); ###3.查看表结构 desc 表名; ###4.关键字 阅读全文
posted @ 2021-03-16 21:39 seonwee 阅读(49) 评论(0) 推荐(0)
摘要: public void test6(){//将数组中的每个数后移一个位置 int[] nums = {1,2,3,4,5}; int change = nums[0]; for(int i = 1;i<=nums.length;i++){ int index = i%nums.length; int 阅读全文
posted @ 2021-03-06 21:40 seonwee 阅读(1844) 评论(0) 推荐(0)
摘要: import org.junit.Test; import java.util.HashSet; /** * @Author DaWeiGuo * @Date 2021/2/20 23:04 * @Desc: HashSet中的元素具有无重复性,且根据元素的哈希值在内存中进行存放,根据HashSet 阅读全文
posted @ 2021-02-21 10:25 seonwee 阅读(304) 评论(0) 推荐(0)
摘要: 原理图: 特点: 用Callable实现的多线程,线程能有返回值 示例代码: class DemoThread implements Callable { //与实现Runnable接口一样,实现Callable接口要重写call()方法 @Override public Object call() 阅读全文
posted @ 2021-02-06 23:28 seonwee 阅读(241) 评论(0) 推荐(0)