思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; const int maxn = 1000 + 5; queue<char> que[maxn]; stack<char> s; int main() { int n, m, ...
分类:
其他好文 时间:
2021-04-27 15:08:37
阅读次数:
0
#include<cstdio> #include<cstring> using namespace std; char firstper[20]; char lastper[20]; char firsttime[20]="23:59:59"; char lasttime[20]="00:00:0 ...
分类:
其他好文 时间:
2021-04-27 14:33:17
阅读次数:
0
1,二分查找 LCP 12. 小张刷题计划 1011. 在 D 天内送达包裹的能力 参考解题:c++/python3 全是套路 标准二分查找三大框架之一 Binary Search 1,写出判定一个值是否可以满足条件的函数g 2,找出左右边界(最小的可能值L,与最大的可能值R) 3,while L< ...
分类:
其他好文 时间:
2021-04-27 14:18:51
阅读次数:
0
背景:假设现在有两个字符串 let str="王者农药",str2 = "wzny"; console.log(str.length) // 4 console.log(str2.length) // 4 两个字符串的长度是一直的,但是str和str2在页面上占据的位置大小是不一致的; 1.获取字符 ...
分类:
其他好文 时间:
2021-04-26 13:50:14
阅读次数:
0
Insertion Sort(插入排序) 思路:for 循环遍历数组中的每一个数 用while将每次遍历到的数于左侧的数进行对比,将小的排到左边 void InsertionSort(int*A, int n){ int key,i=0,p; for(p=0;p<n;p++){ key=A[p]; ...
分类:
其他好文 时间:
2021-04-26 13:48:01
阅读次数:
0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi ...
分类:
其他好文 时间:
2021-04-26 13:25:21
阅读次数:
0
与不含重复数字的全排列相比,在于: 排序; 添加对上一数字的判断 class Solution { LinkedList<List<Integer>> ans=new LinkedList<>(); LinkedList<Integer> path=new LinkedList<>(); boole ...
分类:
其他好文 时间:
2021-04-26 13:15:08
阅读次数:
0
两个整数之间的汉明距离指的是这两个数字对应二进制位不同的位置的数目。 给出两个整数 x 和 y,计算它们之间的汉明距离。 注意:0 ≤ x, y < 231. 示例: 输入: x = 1, y = 4 输出: 2 解释:1 (0 0 0 1)4 (0 1 0 0) ↑ ↑ 上面的箭头指出了对应二进制 ...
分类:
其他好文 时间:
2021-04-24 13:22:45
阅读次数:
0
题目链接: http://codeforces.com/problemset/problem/1516/B 题意 一个含有 n 个非负数的数组,定义某种操作可以把相邻的两个数通过 XOR 合并为一个数,即每次操作后数组的元素个数都会减 1。问是否可以经过若干次这样的操作使得数组中的元素都相等? 思路 ...
分类:
其他好文 时间:
2021-04-24 13:14:41
阅读次数:
0
#新建url文件,以名filelist.txt为例 vim filelist.txt #把文件下载地址url填进去 #执行命令下载 wget -bc -i filelist.txt #选项说明 -b, --background 启动后转入后台。 -c, --continue 继续下载部分下载的文件。 ...
分类:
Web程序 时间:
2021-04-24 13:11:34
阅读次数:
0