可能是要咕咕咕的题目,先上下代码。 代码: 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<cmath> 5 #include<queue> 6 #include<algorithm> 7 using na ...
分类:
其他好文 时间:
2020-07-24 16:21:35
阅读次数:
67
题目链接 树哈希直接套就完了 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef unsigned long long ll; 4 const int N=1e5+10,M=19260817,inf=0x3f3f3f3f,mod=1e ...
分类:
编程语言 时间:
2020-07-24 16:00:39
阅读次数:
74
我的错误代码: 1 #include<iostream> 2 #include <iomanip> 3 4 using namespace std; 5 6 int main() 7 { 8 int N; 9 cin>>N; 10 11 int n; 12 int j=1; 13 int sum0= ...
分类:
其他好文 时间:
2020-07-24 15:33:40
阅读次数:
68
在NHibernata中,提供了l缓存机制。Clear和Flush都是针对session缓存(一级缓存)中的数据。无论还是load()还是get(),都是先查询缓存(一级缓存),没有再查询数据库。如下代码,执行了同一个id的2次查询,但是执行了一次sql的查询。 1 using (ITransact ...
分类:
Web程序 时间:
2020-07-24 10:09:57
阅读次数:
107
#include <bits/stdc++.h> using namespace std; const int N = 55; #define ll long long char c[N], o[N], a[N], b[N]; int n, m, val; ll d[N][N], f[N][N]; ...
分类:
其他好文 时间:
2020-07-24 10:07:53
阅读次数:
100
代码如下: 将小写转换为大写 #include<cstdio> #include<iostream>#include<algorithm>using namespace std;int main(){ char a; cin>>a; char b; b=a-32; cout<<b<<endl; re ...
分类:
其他好文 时间:
2020-07-24 09:57:40
阅读次数:
62
1.头文件 #include<cctype> 2.函数原型 int toupper(int c); 3.用法 #include<cstdio> #include<cctype> #include<iostream> using namespace std; int main(){ char a; c ...
分类:
其他好文 时间:
2020-07-24 09:53:49
阅读次数:
82
#T1 数学问题,考试时没yy出公式,用滚动数组瞎搞了一个$50$%的暴力。 暴力代码找不见了,贴正解吧。 #include <bits/stdc++.h> using namespace std; const int mod = 998244353; #define ll long long in ...
分类:
其他好文 时间:
2020-07-23 23:30:31
阅读次数:
133
先挖坑,过几天填 https://www.luogu.com.cn/training/14535#problems 可持久化数组 P3919 【模板】可持久化线段树 1(可持久化数组) #include<bits/stdc++.h> using namespace std; const int ma ...
分类:
其他好文 时间:
2020-07-23 23:30:13
阅读次数:
112
搜索依然爆炸的烂,继续加油吧。 题解:按照 h 排序的大根堆,每次寻找四周 h 小的接上dp串。 #include <iostream> #include <queue> #include <algorithm> using namespace std; /* * time: 2020.7.23 * ...
分类:
其他好文 时间:
2020-07-23 23:26:22
阅读次数:
94