[Input Text readOnly 属性 Input Text 对象实例设置文本域只读:document.getElementById("myText").readOnly = true;定义和用法readOnly 属性设置或返回文本域是否为只读。只读字段是不能修改的。不过,用户仍然可以使用 ... ...
分类:
Web程序 时间:
2020-07-09 12:15:35
阅读次数:
108
#1. journaling 相关的pull request librbd: integrate journaling support for IO operations #6541 (https://github.com/ceph/ceph/pull/6541) () librbd: integr ...
分类:
数据库 时间:
2020-07-09 12:14:39
阅读次数:
69
[HTML canvas strokeText() 方法 HTML canvas 参考手册实例使用 strokeText(),在画布上写文本 "Hello world!" 和 "Big smile!"(带渐变):YourbrowserdoesnotsupporttheHTML5canvastag.v... ...
分类:
Web程序 时间:
2020-07-09 12:04:48
阅读次数:
102
链接:https://leetcode-cn.com/problems/plus-one/ 代码 class Solution { public: vector<int> plusOne(vector<int>& digits) { int t = 1; for (int i = digits.si ...
分类:
其他好文 时间:
2020-07-08 21:27:49
阅读次数:
43
题目来源:leetcode77 组合 题目描述: 给定两个整数 n 和 k,返回 1 ... n 中所有可能的 k 个数的组合。 示例: 输入: n = 4, k = 2 输出: [ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4], ] 解题思路: 回溯 class ...
分类:
其他好文 时间:
2020-07-08 20:15:32
阅读次数:
60
#include <iostream> #include <vector> using namespace std; int n; const int MaxN = 1e5; long long w[MaxN + 1]; long long ans; vector<int> g[MaxN + 1]; ...
分类:
编程语言 时间:
2020-07-08 20:01:38
阅读次数:
78
class Solution { public: vector<int> gardenNoAdj(int N, vector<vector<int>>& paths) { vector<int> G[N]; for (int i=0; i<paths.size(); i++){//建立邻接表 G[p ...
分类:
其他好文 时间:
2020-07-08 19:35:09
阅读次数:
62
1、报错 本地office莫名崩溃,在线解决安装,后来需要下载,太慢,就使用本地安装包,但是提示安装不了: **很抱歉,无法安装 Office。 正在进行其他安装,请稍后重试。**错误代码 0-1018。 截图如下: 2、官方解决方案无效 网上搜索,发现了官网的解决方法:安装 Office 时显示“ ...
分类:
其他好文 时间:
2020-07-08 16:54:23
阅读次数:
693
暴搜或者字典树,但是因为输出所有的方案而不是方案数,不管什么做法都逃不过输出,所以都差不多 sol1:记忆化搜索 当枚举方案时,f[i]表示已经把字符串的前i个字母都拼好的情况下有多少方案 考虑从第i+1个字符开始到j是一个给定的单词 如果有这样的j的话就可以转移 然后开一个vector把每一个状态 ...
分类:
其他好文 时间:
2020-07-08 15:33:26
阅读次数:
40
Maximum Gap Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Return 0 if the array contains le ...
分类:
其他好文 时间:
2020-07-08 15:25:35
阅读次数:
52