简介 googletest是Google公司开发的一款跨平台的c++测试框架。 依赖 Bazel或者CMake(通常用cmake) 支持c++11标准的编译器 安装 下载 git clone https://github.com/google/googletest.git 编译 cd googlet ...
分类:
其他好文 时间:
2020-06-21 09:55:58
阅读次数:
189
agc_044e Random Pawn https://atcoder.jp/contests/agc044/tasks/agc044_e Tutorial http://auoj.net/download.php?type=solution-pdf&id=413 https://atcoder. ...
分类:
其他好文 时间:
2020-06-21 09:21:23
阅读次数:
46
ACM-ICPC模板 一、线段树优化的$Dijkstra$ 优先队列版本已经烂大街了,这里就不贴了,而且在下面的分层图里有写 1.普通线段树 时间和内存均是优先队列优化版本的 \(\frac{1}{2}\) int n, m; struct edge { int to, w, nxt; edge() ...
分类:
其他好文 时间:
2020-06-20 21:08:35
阅读次数:
53
c++关于char的几个内置函数 (1)islower(char c) 是否为小写字母(2)isupper(char c) 是否为大写字母(3)isdigit(char c) 是否为数字(4)isalpha(char c) 是否为字母(5)isalnum(char c) 是否为字母或者数字(6)to ...
分类:
编程语言 时间:
2020-06-19 14:27:41
阅读次数:
82
我只放代码你们凑活看吧。。 参考了大佬 @墨染空 的题解 暴力代码 #include<bits/stdc++.h> typedef pair<int,int> pii; using namespace std; int n,m,bnum=0; pii bian[666]; int to[33],nx ...
创建一个文件夹,路径不能有中文 文件->打开文件夹->打开刚刚的新建的文件夹 新建一个cpp文件 测试代码 #include <iostream> using namespace std; int main() { for(int i=0;i<10;++i) { cout << i<<endl; } ...
分类:
编程语言 时间:
2020-06-19 13:56:57
阅读次数:
46
转自yhjokerVisual Studio中头文件stdafx.h的作用 在 Visual Studio 中(笔者版本 Visual Studio 2017),新生成的C++项目文件的的头文件夹下会默认有头文件stdafx.h,而源文件夹下则默认有源文件stdafx.cpp,手动将这些文件删除后, ...
分类:
编程语言 时间:
2020-06-19 13:43:49
阅读次数:
94
模板来自 www.acwing.com // 23132423543426561213.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include <vector> using namespace std; int tes ...
分类:
其他好文 时间:
2020-06-19 12:28:55
阅读次数:
67
原文:https://www.cnblogs.com/wanmeishenghuo/p/9655599.html 参考狄泰软件相关教程 由上图可以看出来,插入和遍历的时间复杂度是不一样的。 这样不管游标在哪一个位置上,都可以通过后继或者前驱指针任意访问。 双向链表的继承层次: 单链表和双向链表应该是 ...
分类:
其他好文 时间:
2020-06-19 12:20:40
阅读次数:
66
代码: /** * This file is part of ORB-SLAM2. * * Copyright (C) 2014-2016 Raúl Mur-Artal <raulmur at unizar dot es> (University of Zaragoza) * For more in ...
分类:
其他好文 时间:
2020-06-18 21:25:36
阅读次数:
53