码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
《算法竞赛进阶指南》0x07贪心 POJ2054 color the tree树的缩点与合并
题目链接:http://poj.org/problem?id=2054 贪心算法,思路参考yxc,涉及树的合并与缩点,将所有触发点构成的链全部缩进根节点即可得到最终的结果。证明: 代码如下: #include<iostream> using namespace std; const int maxn ...
分类:编程语言   时间:2020-06-16 15:01:14    阅读次数:52
WPF-使用GMap(一)
1.安装GMap.Net.Presentation(实际上就是添加GMap.Net.Core.dll和GMap.Net.WindowsPresentation.dll) 2.直接声明GMap控件 using GMap.NET.WindowsPresentation; namespace Test2 ...
分类:Windows程序   时间:2020-06-16 14:48:15    阅读次数:221
GetThreadContext和SetThreadContext
#include "stdafx.h" #include <iostream> #include <windows.h> using namespace std; DWORD WINAPI ThreadProc(LPVOID lpParamter) { for (int i = 0;i<10;i++ ...
分类:其他好文   时间:2020-06-16 14:42:24    阅读次数:52
返回long类型精度丢失
返回前端的实体中包含long类型,并且因为精度丢失导致返回数据变化。添加注解把long转换成字符串。 @ApiModelProperty(value = "活动ID ", name = "campaignId", required = true) @JsonSerialize(using= ToSt ...
分类:其他好文   时间:2020-06-16 12:45:30    阅读次数:44
C(n, m)模板
#include <bits/stdc++.h> #define mp make_pair #define pb push_back using namespace std; typedef pair<int, int> pii; typedef long long ll; typedef unsi ...
分类:其他好文   时间:2020-06-15 23:21:00    阅读次数:80
Understanding RegEx with Notepad++ 正则表达式
Searching a string using the ‘Find‘ or ‘Find & Replace‘ function in text editors highlights the relevant match (e.g. searching ‘le‘ highlights it insi ...
分类:其他好文   时间:2020-06-15 23:19:53    阅读次数:101
C#类(二):继承和多态(EduCoder实训题目)
第1关:继承 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace K1 { public abstr ...
分类:Windows程序   时间:2020-06-15 22:58:40    阅读次数:86
php Heredoc 结构的字符串示例
Heredoc 结构的字符串与双引号("")字符串对比分析 <?php $str = <<<EOD Example of string spanning multiple lines using heredoc syntax. EOD; /* 含有变量的更复杂示例 */ class foo { va ...
分类:Web程序   时间:2020-06-15 22:52:39    阅读次数:86
CF1280G Kirchhoff's Current Loss【表达式解析,不等式】
题目描述:给你一个由 \(n\) 个电阻通过串并联构成的纯电阻电路,要求你给每个电阻分配一个阻值,使得每个电阻的阻值都是非负整数,整个电路的阻值为 \(r\),所有电阻的阻值之和最小。求构造方案。共 \(t\) 组数据。 数据范围:\(t\le 32000,r\le 10^6,n\le 80000, ...
分类:其他好文   时间:2020-06-15 20:43:05    阅读次数:40
麦当劳叔叔的难题
麦当劳叔叔的难题 https://www.luogu.com.cn/problem/P1713 前言: 题目本身并不难(虽然是绿题),只要敲代码的时候细心就好 However,蒟蒻表示有一个玄学的问题想请教大家QAQ(请大家移步最后或慢慢看到最后) 题目简述: 给你n×n的地图,以及m个障碍的坐标, ...
分类:其他好文   时间:2020-06-15 20:38:20    阅读次数:55
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!