做完前四题还有一个半小时... 比赛链接:https://codeforces.com/contest/1382 A. Common Subsequence 题意 给出两个数组,找出二者最短的公共子序列。 题解 最短即长为一。 代码 #include <bits/stdc++.h> using na ...
分类:
其他好文 时间:
2020-07-22 11:10:39
阅读次数:
89
<insert id="importData" parameterType="list"> insert into user <trim prefix="(" suffix=")" suffixOverrides=","> id, name, age, </trim> values <foreach ...
分类:
其他好文 时间:
2020-07-21 22:45:24
阅读次数:
83
题意:让我们根据提供的序列,找出另外一个序列 使当前序列满足非负整数中,前k个数中的未出现过的最小整数等于提供的序列中第K个数 思路:我们采用从后面遍历到前面的做法 首先可以确定的是,假如前后两个数字不相同,如 5 6 ,则在6的位置(也就是第二个位置)我们可以填上5,这是确定的 然后再用一个vis ...
分类:
其他好文 时间:
2020-07-21 22:18:57
阅读次数:
68
题目链接 Polycarpus has a ribbon, its length is n. He wants to cut the ribbon in a way that fulfils the following two conditions: After the cutting each r ...
分类:
其他好文 时间:
2020-07-21 21:35:20
阅读次数:
72
本文章主要介绍字符串切分,拼接,判断,查找等内容。
分类:
编程语言 时间:
2020-07-20 11:02:24
阅读次数:
79
##题目 Pasha loves to send strictly positive integers to his friends. Pasha cares about security, therefore when he wants to send an integer n, he encry ...
分类:
其他好文 时间:
2020-07-19 23:37:51
阅读次数:
80
https://leetcode-cn.com/problems/lian-xu-zi-shu-zu-de-zui-da-he-lcof/ 1、题目描述: 输入一个整型数组,数组里有正数也有负数。数组中的一个或连续多个整数组成一个子数组。求所有子数组的和的最大值。 要求时间复杂度为O(n)。 2、示 ...
分类:
编程语言 时间:
2020-07-19 18:09:51
阅读次数:
388
Makefile使用函数 1、函数的调用语法 函数调用,很像变量的使用,也是以“$”来标识的,其语法如下: $(<function> <arguments>) 或是 ${<function> <arguments>} 这里,<function>就是函数名,make支持的函数不多。<arguments ...
分类:
其他好文 时间:
2020-07-18 22:08:28
阅读次数:
56
设置路由: use Illuminate\Support\Facades\Route; //设置路由访问控制器只能是get访问 // Route::get('/user','User@user'); // Route::get('/',function(){ // return 'hello wor ...
分类:
数据库 时间:
2020-07-18 19:57:39
阅读次数:
87
今日学习Springmvc遇见一个bug,在配置视图解析器的时候,后缀配得是.html,路径完全正确的情况下,视图解析器解析不到。换jsp文件可以正常访问 <bean id="InternalResourceViewResolver" class="org.springframework.web.s ...
分类:
编程语言 时间:
2020-07-18 15:27:13
阅读次数:
98