题目 On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on ...
分类:
其他好文 时间:
2020-01-28 21:29:54
阅读次数:
63
On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on sc ...
分类:
其他好文 时间:
2020-01-25 11:41:55
阅读次数:
76
一般而言,安装一些软件缺少的依赖库,使用 sudo apt install -f 以及 sudo apt update 就可以解决,解决不了的大多都是使用的源没有相应的依赖文件,更换源即可。 -f参数为--fix-broken的简写形式,-f参数的主要作用是是修复依赖关系(depends),假如用户 ...
分类:
系统相关 时间:
2020-01-16 23:47:50
阅读次数:
114
D - DFS HDU - 2660 I have N precious stones, and plan to use K of them to make a necklace for my mother, but she won't accept a necklace which is too ...
分类:
其他好文 时间:
2020-01-14 10:10:03
阅读次数:
75
题意:给你一串只含小写字母字符串,和几个可用字母,求用所给字母能表示所给字符串中的子串数量。 思路:题中已给出(n个字符的)子串和该子串能分解出多少子串的数量关系:n*(n+1)/2。所以找出每一段子串,求该段子串能分成多少子子串,求出数量之和即可。 特别注意要用long long int,否则会超 ...
分类:
其他好文 时间:
2020-01-13 21:52:36
阅读次数:
74
"[USACO1.1]坏掉的项链Broken Necklace" "22892 破碎的项链" 方法一:很容易想到枚举断点,再分别两头找,但是要注意很多细节 ...
分类:
其他好文 时间:
2019-12-31 21:39:58
阅读次数:
79
``` ~$ sudo apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies.... ...
分类:
其他好文 时间:
2019-12-26 11:23:25
阅读次数:
92
time limit per test2 secondsmemory limit per test256 megabytesinput: standard inputoutput: standard output Recently, Norge found a string s=s1s2…sn co ...
分类:
其他好文 时间:
2019-12-21 00:15:46
阅读次数:
68
cli 模式报错 本以为开启需要断线重连,就没问题了,结果隔一段时间有出现了同样的错误 问题分析,这里采用的Redis的订阅模式,持久性的 解决办法,通过任务队列解决 ...
分类:
Web程序 时间:
2019-11-20 16:51:35
阅读次数:
442
题意: 输入两行字符串,输出第一行有而第二行没有的字符(对大小写不敏感且全部以大写输出)。 代码: #define HAVE_STRUCT_TIMESPEC#include<bits/stdc++.h>using namespace std;string s1,s2;bool vis[507];ve ...
分类:
其他好文 时间:
2019-11-17 21:00:58
阅读次数:
68