1.第一题就给我整蒙了 1.1我的思路,看能不能获取到一个列表的(里面全是0,1)的最大连续长度 def get_max_one(A): A = [str(i) for i in A] s1 = ''.join(A) #我想把列表变成字符串,然后按0 split ,列表里必须都是字符串 A = s1 ...
分类:
其他好文 时间:
2021-02-20 12:40:12
阅读次数:
0
批量插入 xml如下: <insert id ="batchInsert" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id"> insert into t_person(name, age, height, ...
分类:
其他好文 时间:
2021-02-20 12:17:17
阅读次数:
0
正题 题目链接:https://www.luogu.com.cn/problem/CF1375F 题目大意 给出$a,b,c$。先手每次指定一个数$k$,然后后手指定一个数字加上$k$,若有相同的数则先手胜利,操作次数超过$1000$后后手胜。后手不能两次操作同一个数。 你选择先手/后手后与交互系统 ...
分类:
其他好文 时间:
2021-02-19 13:54:07
阅读次数:
0
原题链接 考察:记忆化搜索 思路: 可用递推和记忆化搜索两种方式. 1 #include <iostream> 2 #include <cstring> 3 #include <algorithm> 4 #include <cstdio> 5 using namespace std; 6 const ...
分类:
其他好文 时间:
2021-02-19 13:15:23
阅读次数:
0
将类似于 git clone https://github.com/graykode/nlp-tutorial 的命令改成 https://github.com.cnpmjs.org/graykode/nlp-tutorial 这样的,就可以了 ...
分类:
其他好文 时间:
2021-02-19 13:12:05
阅读次数:
0
mongo中update_one与find_one_update异同 在使用mongo时,想要更新一个文档的数据时,有update_one与find_one_update两种方法可供使用。 共同点 两个方法的传入参数都差不多,主要参数都是filter,update,upsert。两个方法都是用于更新 ...
分类:
其他好文 时间:
2021-02-19 13:09:10
阅读次数:
0
遇到两个报错: 第一个权限问题报错,好解决 startForeground requires android.permission.FOREGROUND_SERVICE Manifest给下权限就行 <manifest ...> ... <uses-permission android:name=" ...
分类:
移动开发 时间:
2021-02-18 13:21:34
阅读次数:
0
Team Name 留坑。 Prime Game 留坑。 XOR Sums 留坑。 Multiple Games 留坑。 Another Tree with Numb 留坑。 Bash Matrix 留坑。 Cell Shell 留坑。 Cut the Cake (Challenge) 留坑。 Dr ...
分类:
其他好文 时间:
2021-02-18 13:09:23
阅读次数:
0
类 类的定义 //定义一个Person的类 class Person { //属性 String userName = 'Tobu'; int age = 25; String blogAdress = 'https://www.cnblogs.com/TobuTobu'; String userI ...
分类:
其他好文 时间:
2021-02-18 12:55:10
阅读次数:
0
常用环境配置 要清理磁盘空间可以看这个文章:https://www.linuxprobe.com/disk-release.html 最简单的安装,结束以后先换源 apt install build-essential gcc make perl dkms # 之后安装vbox增强功能 # 基本工具 ...
分类:
系统相关 时间:
2021-02-17 15:13:48
阅读次数:
0