本场链接:Codeforces Round #713 (Div. 3) A. Spy Detected! #include <bits/stdc++.h> using namespace std; typedef long long ll; #define forn(i,x,n) for(int i ...
分类:
其他好文 时间:
2021-04-12 12:42:16
阅读次数:
0
公交站点显示 using System.Collections.Generic; usinSystem.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; usi ...
分类:
其他好文 时间:
2021-04-12 12:40:32
阅读次数:
0
原题链接 题解:注意建立边 代码: #include <iostream> #include <algorithm> #include <cstring> #include <cmath> using namespace std; const int N = 5e3 + 9; const int M ...
分类:
其他好文 时间:
2021-04-12 12:34:29
阅读次数:
0
ini文件读写 添加帮组类 using System; using System.Text; using System.IO; using System.Runtime.InteropServices; namespace IniHelperDemo { public class IniConfig ...
分类:
其他好文 时间:
2021-04-12 12:32:03
阅读次数:
0
XML文件操作 实体类 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace XMLDemo { class Student { public string St ...
分类:
其他好文 时间:
2021-04-12 12:30:15
阅读次数:
0
from https://towardsdatascience.com/optimizers-for-training-neural-network-59450d71caf6 Many people may be using optimizers while training the neural ...
分类:
Web程序 时间:
2021-04-12 12:26:22
阅读次数:
0
又是该LL用int了,什么时候才能不犯病啊。 A:水题,让你找出3个以上的数组中不同的那个数 我是直接分情况。 1 #include<iostream> 2 #include<vector> 3 using namespace std; 4 const int N=110; 5 int a[N]; ...
分类:
其他好文 时间:
2021-04-12 12:25:31
阅读次数:
0
LCA — 欧拉序+ST表 \(O(n\log n)\) 预处理,\(O(1)\) 询问?。 \(lca(x,y)=\) 欧拉序中最早出现的 \(x\) 和 \(y\) 中间深度最浅的点。 Luogu P3379 #include <bits/stdc++.h> using namespace st ...
分类:
其他好文 时间:
2021-04-12 12:13:56
阅读次数:
0
很显然的区间dp 当我们卖掉一个物品时,可以看为给延后卖的商品都加价 $ dp [ i ] [ j ] $ 表示卖掉i~j的最大收益 #include<bits/stdc++.h> using namespace std; int n; int v[2021]; int dp[2021][2021] ...
分类:
其他好文 时间:
2021-04-12 12:03:32
阅读次数:
0
以字符串aabaaf为例 next数组可能有几种表达方式 如 0 1 0 1 2 0 -1 0 1 0 1 2 -1 0 -1 0 1 -1 实际上他们的本质上都是一样的 第一种当前后缀不匹配时,j跳到next[j-1]; 第二种j跳到next[j]; #include<iostream> #inc ...
分类:
编程语言 时间:
2021-04-12 11:45:51
阅读次数:
0