首先去Nuget中安装Log4Net包 安装:log4net 安装:Microsoft.Extensions.Logging.Console 安装:Microsoft.Extensions.Logging.Log4Net.AspNetCore 方式一 Program.cs文件 using Micro ...
分类:
Web程序 时间:
2020-06-20 21:29:26
阅读次数:
105
对边建点,原图中的边转化为 点的点 - 边的点 - 点的点 于是用 LCT 维护连通关系,并支持查询最大值位置即可 #include <bits/stdc++.h> using namespace std; const int N = 300005; int n,m,val[N],t1,t2,t3; ...
分类:
其他好文 时间:
2020-06-20 21:26:56
阅读次数:
58
17分代码(测试点1,3错误) 1 #include<iostream> 2 #include <vector> 3 using namespace std; 4 struct node 5 { 6 string num,arrive,leave; 7 }; 8 int main() 9 { 10 ...
分类:
其他好文 时间:
2020-06-20 19:47:11
阅读次数:
70
#include <list> #include <iostream> using namespace std; //list数据存取 void printList(const list<int>&L){ for (list<int>::const_iterator it = L.begin(); ...
分类:
其他好文 时间:
2020-06-20 19:42:41
阅读次数:
51
#include <list> #include <iostream> #include <algorithm> using namespace std; //list反转和排序 void printList(const list<int>&L){ for (list<int>::const_ite ...
分类:
编程语言 时间:
2020-06-20 19:31:03
阅读次数:
65
不废话,直接代码 using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; usi ...
#include <list> #include <iostream> using namespace std; void printList(const list<int>&L){ for (list<int>::const_iterator it = L.begin(); it != L.end ...
分类:
其他好文 时间:
2020-06-20 19:23:54
阅读次数:
54
昨天和今天测了一下前年noip tg的题 100+80+20+60+45+0=305pts 应该是大众分了。。刚好压前年我省1=线。。 我还是太弱了/kk 提交的代码: D1T1: #include<bits/stdc++.h> #define ll long long using namespac ...
分类:
其他好文 时间:
2020-06-20 19:11:30
阅读次数:
55
由于C语言中并不像C++、python、Java等已经集成好 string 类,因此使用“数组型字符串”的时候时常会出现问题。 现在以标准c语言中的数字转换成字符串为例。直接上代码。 1 #include<iostream> 2 #include<string.h> 3 using namespac ...
分类:
编程语言 时间:
2020-06-20 18:58:30
阅读次数:
78
#include <iostream> #include <cstdio> #include <cstring> #include <cmath> #define N 500000 using namespace std; int n,m,S,T,tmp1,tmp2,tot; int idx,hea ...
分类:
其他好文 时间:
2020-06-20 18:52:12
阅读次数:
51