最短路变形:用一条最小边替换一条最大边意义下的最短路 分层图,dis[i][0/1][0/1]表示点i,是否经过最小边,是否经过最大边 最小边两倍贡献,最大边0贡献 /* * Author : GhostCai * Expecto Patronum */ #include<bits/stdc++.h ...
分类:
其他好文 时间:
2021-01-19 11:43:34
阅读次数:
0
下载某个版本的glibc,我是在这里下载的:https://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/g/glibc/ 我把它解压到lib00文件夹里:dpkg -x libc6_2.31-0ubuntu9.1_amd64.deb lib00 利用p ...
分类:
系统相关 时间:
2021-01-19 11:43:12
阅读次数:
0
CF1461B Find the Spruce 题目大意: 求指定类型图案的数量。 思路: 一个很巧妙的递推式。 注意从下往上进行递推。 Code: #include <bits/stdc++.h> using namespace std; const int N = 510; int n, m; ...
分类:
其他好文 时间:
2021-01-19 11:39:58
阅读次数:
0
1、实现弹出如下样式的提示框: 2、实现弹出的字符串内容通过exe参数传进去,例如: #include <Windows.h> #include <tchar.h> int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPreInstance, L ...
参考: https://oi-wiki.org/ds/li-chao-tree/ 例题: P4097 [HEOI2013]Segment #include<bits/stdc++.h> #define db double const int p=39989; using namespace std; ...
分类:
其他好文 时间:
2021-01-18 11:39:35
阅读次数:
0
#include<stdio.h> int main() { int n, m; while (scanf("%d%d", &n, &m) ==2) //(scanf("%d%d",&n,&m)!=EOF); { printf("m+n=%d\n", m + n); } return 0; ...
分类:
编程语言 时间:
2021-01-18 11:23:41
阅读次数:
0
通常在C或C++的编程过程中可以使用头文件#inlcude<algorithms>来使用在其他标准库中的一些相关函数,例如最近我在使用的——快排。 快排函数qsort位于#include<stdlib.h>标准函数库中,但是可以使用头指针#inlcude<algorithms>直接调用快排函数而不用 ...
分类:
编程语言 时间:
2021-01-18 11:20:41
阅读次数:
0
一、getchar()和cin.get() getchar()会将开头的空格或者回车作为输入 1 #include<iostream> 2 using namespace std; 3 int main(){ 4 char ch1 = getchar(); 5 char ch2 = getchar( ...
分类:
其他好文 时间:
2021-01-18 11:19:13
阅读次数:
0
伪协议常常用于文件包含漏洞之中。 在php中能够造成文件包含的函数有include、require、include_once、require_once、highlight_file、show_source、file_get_contents、fopen、file、readfile 0x01 函数 1 ...
分类:
其他好文 时间:
2021-01-18 11:07:57
阅读次数:
0
对结构体排序 ''' #include<iostream> #include<algorithm> using namespace std; const int si= 101; struct segment { int l, r; bool operator < (const segment v) ...
分类:
编程语言 时间:
2021-01-18 11:05:01
阅读次数:
0