码迷,mamicode.com
首页 >  
搜索关键字:const    ( 26295个结果
利用electron实现pdf转html pdf2html
1, 下载:https://github.com/gerhardberger/electron-pdf-window 存到目录下,如d:\dev 2,用electron执行nodejs文件 electron.exe index.js index.js const { app, BrowserWind ...
分类:Web程序   时间:2020-11-16 13:35:15    阅读次数:19
P3177 [HAOI2015]树上染色
###链接 我好菜啊。。。 考虑每条边对答案的贡献为多少。 显然可以定义状态 \(f_{i,j}\) 表示 \(i\) 子树中有 \(j\) 个黑点,子树中每条边对答案贡献之和的最大值。 于是合并就是背包,方程为 \(f_{u,i+j}=f_{u,i}+f_{v,j}+((k-j)*j+((n-k) ...
分类:其他好文   时间:2020-11-16 13:35:00    阅读次数:7
20.11.9 leetcode973
题意:给出多个二维点,求离原点最近的k个点 直接根据距离排序即可,主要看下代码,leetcode这种写法很不熟。 class Solution { public: static bool cmp(const vector<int>& a,const vector<int>& b){ return a ...
分类:其他好文   时间:2020-11-13 13:22:48    阅读次数:28
AtCoder Grand Contest 019
Preface 最后四天,最后四场! A - Ice Tea Store 有手就行,考虑偶数部分和多出的一个$0/1$分别用什么买最优即可 #include<cstdio> #include<iostream> #define RI register int #define CI const int ...
分类:其他好文   时间:2020-11-13 12:58:36    阅读次数:6
P2341 [USACO03FALL][HAOI2006]受欢迎的牛 (tarjan缩点,拓扑)
#include<iostream> #include<cstring> using namespace std; const int maxn=50010; int head[maxn],cnt; int dfn[maxn],low[maxn],tot,stack[maxn],idx,visit[ ...
分类:其他好文   时间:2020-11-13 12:49:27    阅读次数:7
链表(模板)类
链表类依赖于cmath头文件,使用ListNode,List四个文件实现: ListNode.h: 1 /********************************************* 2 ListNode.h 3 链表节点(模板)类 ListNode 4 T 节点数据 5 pred 前 ...
分类:其他好文   时间:2020-11-12 14:13:56    阅读次数:5
linux中常用的系统函数
1.system()函数 头文件 #include <stdlib.h> 函数定义 int system(const char * string); 函数说明:通过linux命令 man 3 system 可以看到该函数的作用是:执行shell命令 system()会调用fork()产生子进程,由子 ...
分类:系统相关   时间:2020-11-12 13:44:15    阅读次数:19
Vue的使用方法
安装vue-loader及vue-template-compiler npm install vue-loader vue-template-compiler --save-dev webpack.const.js rules中配置 { test:/\.vue$/ use: ['vue-loader ...
分类:其他好文   时间:2020-11-12 13:32:42    阅读次数:6
Vue-router路由导航
登陆按钮的方法 loginbtn () { // 预校验 this.$refs.loginRef.validate(async (valid) => { // console.log(valid) if (!valid) { return } // 数据解构 const { data: res } ...
分类:其他好文   时间:2020-11-12 13:23:07    阅读次数:6
前缀和、差分、双指针
前缀和 前缀和就是数组前 \(i\) 项之和,主要作用是能快速求出 区间和 下标 : $1$ $2$ $3$ $4$ $5$ \(a[5]\) : $2$ $4$ $3$ $5$ $8$ 前缀和数组: $2$ $6$ $9$ $14$ $22$ 为了便于计算,数组下标一般从 $1$ 开始,能得到 一 ...
分类:其他好文   时间:2020-11-11 16:34:03    阅读次数:7
26295条   上一页 1 ... 63 64 65 66 67 ... 2630 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!