码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
杭电OJ 1003
#include <iostream> #include <string> using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define SWAP(a,b) auto c=a;a=b;b=c; int main() ...
分类:其他好文   时间:2020-06-05 12:50:54    阅读次数:50
lambda表达式操作DataTable番外篇
using System;using System.Collections.Generic;using System.Data;using System.Linq;using System.Text;using System.Threading.Tasks; namespace ConsoleApp ...
分类:其他好文   时间:2020-06-05 01:04:19    阅读次数:110
Codeforces Round #498 (Div. 3) E. Military Problem (DFS)
题意:建一颗以$1$为根结点的树,询问$q$次,每次询问一个结点,问该结点的第$k$个子结点,如果不存在则输出$-1$. 题解:该题数据范围较大,需要采用dfs预处理的方法,我们从结点$1$开始向下找,$ans$数组记录的是,第$x$次查找时的结点,$path$表示某个结点所需的查找次数,$siz$ ...
分类:其他好文   时间:2020-06-04 19:43:10    阅读次数:53
6.4 VJ E - K-th Beautiful String
#include<bits/stdc++.h>#define ll long long#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);using namespace std;const ll nl=1e18;/* ...
分类:其他好文   时间:2020-06-04 19:38:52    阅读次数:55
MySQL配置优化
MySQL参数优化对于不同的网站,及其在线量,访问量,帖子数量,网络情况,以及机器硬件配置都有关系,优化不可能一次性完成,需要不断的观察以及调试,才有可能得到最佳效果。下面列出了对性能优化影响较大的主要变量,主要分为连接请求的变量和缓冲区变量1、连接请求的变量1).max_connectionsMySQL的最大连接数,如果服务器的并发连接请求量比较大,建议调高此值,以增加并行连接数量,当然这建立在
分类:数据库   时间:2020-06-04 18:08:01    阅读次数:62
Resolve StreamReader ReadLine left the first character
static void FileStreamWriterReadDemo() { string textFile = "fs.txt"; using (FileStream fs = new FileStream(textFile, FileMode.Create)) { using (Stream ...
分类:其他好文   时间:2020-06-04 13:54:35    阅读次数:54
Contest (树状数组求逆序对)
题目链接:https://ac.nowcoder.com/acm/problem/13947 题目大意:有n个队伍参加三场比赛,如果队伍x有一场比赛赢了队伍y,y也有一场比赛赢了x,就算一组,求有多少组。 思路:这里我用了树状数组求逆序对的方法,先对第一场比赛进行排序,然后求第二场和第三场的逆序对, ...
分类:编程语言   时间:2020-06-04 13:32:15    阅读次数:60
【C#】HttpClient 的基本使用
简单的异步 Get 请求 using (var client = new HttpClient()) { HttpResponseMessage response = await client.GetAsync(RemoteUrl); if (response.IsSuccessStatusCode ...
分类:Windows程序   时间:2020-06-04 09:12:37    阅读次数:317
luogu P2384 最短路 spfa+数学?
#include<cstdio> #include<queue> #include<cstring> #include<cmath> #include<iostream> #define mod 9987 using namespace std; const int N=1000005; int e ...
分类:其他好文   时间:2020-06-04 09:12:20    阅读次数:66
luogu P2071 座位安排 二分图最大匹配 双重的
#include<iostream> #include<cstdio> #include<algorithm> #include<queue> #include<iomanip> #include<cstring> using namespace std; typedef long long ll; ...
分类:其他好文   时间:2020-06-04 01:12:55    阅读次数:61
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!