A - Favorite Sound #include<bits/stdc++.h> using namespace std; const int N = 1e6 + 5; typedef long long LL; int main(){ int a, b, c; cin >> a >> b >> ...
分类:
其他好文 时间:
2021-02-16 12:44:42
阅读次数:
0
npm init -y npm i express mongoose ejs npm i method-override nodemon app.js nodemon seeds/index.js models/campgrounds.js const mongoose = require('mon ...
分类:
其他好文 时间:
2021-02-16 12:42:42
阅读次数:
0
原文 https://blog.csdn.net/fanweilin0123/article/details/109903447 注意点: const TestModule: Module<TestModulesTypes, RootStateTypes> = {中的**TestModulesTyp ...
分类:
其他好文 时间:
2021-02-16 12:40:56
阅读次数:
0
题目链接 #题目大意 给你几条边,这些边是从完全图里删除掉的边,将一条边入删边之后的完全图的花费是1,问最小生成树的代价。 #解题思路 图中连通块的个数求出来了就有答案了,求补图连通块个数模板题。 #代码 const int maxn = 2e5+10; const int maxm = 1e5+1 ...
分类:
其他好文 时间:
2021-02-16 12:26:35
阅读次数:
0
// // variadic_template.h// template <typename T>class Enum {public: using Type = T; static const char * toString(T); static T toEnum(const std::strin ...
分类:
其他好文 时间:
2021-02-16 12:24:36
阅读次数:
0
ref和reactive使用上的区别(vue3 组合式api中) 在vue3中对响应式数据的声明官方给出了ref()和reactive()这两种方式 响应式数据:是指当数据改变后,Vue 会通知到使用该数据的代码。例如,视图渲染中使用了数据,数据改变后,视图也会自动更新。 定义数据 reactive ...
分类:
其他好文 时间:
2021-02-16 12:17:09
阅读次数:
0
考虑到不知道第$104$个素数有多大,可以先用程序测试下第$104$个素数是多少。 const int N=2e5+10; int primes[N],cnt; bool vis[N]; void init(int n) { for(int i=2;i<=n;i++) if(!vis[i]) { p ...
分类:
其他好文 时间:
2021-02-16 12:14:01
阅读次数:
0
1.open/close 函数原型: int open(const char *pathname,int flags); int open(const char *pathname,int flags,mode_t mode); 参数: pathname:文件名 flags: 必选项:O_RDONL ...
分类:
系统相关 时间:
2021-02-16 12:02:12
阅读次数:
0
const和指针 相信很多人和我一样,在学习到const和指针这一块的时候,会被绕晕,不知道到底什么是不可变的,解决这个问题的诀窍就是 从右向左读 例如图中第一个例子,读出来之后,const在pointer前面就是pointer不能被改变,也就是指针本身不能被改变,但是指向的内容是可以被改变的。 第 ...
分类:
其他好文 时间:
2021-02-16 11:56:42
阅读次数:
0
给定一个数组,每次操作可以把任意一个元素 +1 或者 -1。求使得递增的最小操作次数。 n<=3000 ...
分类:
其他好文 时间:
2021-02-16 11:54:21
阅读次数:
0