E ZOJ - 4104 题意: 一个数列,每次操作可以将任意一个数提至数列最前端,问至少操作几次可以将数列变为非降数列? 题解: 可以观察到,任何数列,都可以通过最多n-1次操作变成非降数列,我们在建一个与原来数组一样的数组,从后往前考虑,如果这个数的位置正确,则跳过,如果不正确,那么这个数肯定要 ...
分类:
其他好文 时间:
2020-09-23 22:59:17
阅读次数:
88
原因是a标签button以及element-ui的组件不能直接放在<template>下 ...
分类:
其他好文 时间:
2020-09-18 17:25:55
阅读次数:
81
assert (expr); assert 是一个宏,当表达式 expr 的值为 0 时,程序会被终止(RE),然后你会得到一个消息,包含这个表达式的内容,表达式所在行号及源文件名:Assertion failed: expression, file filename, line line numb ...
分类:
编程语言 时间:
2020-09-18 03:24:40
阅读次数:
45
很多时候我们在项目的路由都是在前端配置好的但是有的时候为了进行全面的权限控制,会需要后台给出路由表,前端再渲染。不用在前端配置。 下面主要讲一下思路1、和后台小哥哥沟通好数据,把我们前端配置的路由表数据给他,他就能看懂了 2、拿到数据需要我们自己再处理路由中的component后台是给不了的,这里我 ...
分类:
其他好文 时间:
2020-09-18 03:00:44
阅读次数:
32
1.内部存在数据的驱动,需重新赋值config, 2.数据更新不重头滚动 安装新的版本 ;(this as any).$refs['scrollBoard'] && (this as any).$refs['scrollBoard'].updateRows(this.config.data) 3.设 ...
分类:
其他好文 时间:
2020-09-18 01:09:05
阅读次数:
65
vector<int>int2Vecbinary(intiNumber,intiBits){vector<int>bTemp;for(intj=(iBits-1);j>=0;j--){bTemp.push_back((iNumber>>j)&1);}returnbTemp;}
分类:
其他好文 时间:
2020-09-18 00:25:03
阅读次数:
23
2020年9月13日13:50:39 定义(what) 科比会三步上篮,我会三步上篮 科比会投篮,我会投篮 科比会打铁,我会打铁 科比 = 我 Define the skeleton of an algorithm in an operation, deferring some steps to s ...
分类:
其他好文 时间:
2020-09-18 00:06:34
阅读次数:
29
Vector 基本写法 vector<int>a //定义一个int类型的vector a vector<int>a(100,0) //声明一个已经存放了100个0的整数vector 常用操作 a.size() //返回元素个数 a.pop_back() //删除末尾的元素 a.push_back( ...
分类:
其他好文 时间:
2020-09-17 23:20:42
阅读次数:
30
一、Reading Some people have goals in life. For these people it is important to achieve their goals. As for my brother Billy, his goal in life is to mak ...
分类:
其他好文 时间:
2020-09-17 22:47:51
阅读次数:
19
在此处记录下使用过的两种方式: 第一种: 使用 vue-particles vue导入组件 npm install vue-particles --save-dev 在main.js引入(也可以单独在对应模块引入) import Vue from 'vue' import VueParticles ...
分类:
其他好文 时间:
2020-09-17 21:46:47
阅读次数:
28