给一个数列,每次询问一个区间内有没有一个数出现次数超过一半 #include<cmath> #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; const int ...
分类:
其他好文 时间:
2020-05-26 15:06:14
阅读次数:
52
"题目链接" problem 给出一个$n$个点$m$条边的无向图,然后有$Q$次询问,每次询问会给出$k$条边,你需要回答删掉这$k$条边之后这个无向图还是不是连通。 $n\le 10^5,m\le 5\times 10^5,k\le 15$ solution 先找出一个$dfs$树,考虑在什么情 ...
分类:
其他好文 时间:
2020-05-25 17:50:21
阅读次数:
587
#include <stdio.h> #include <iostream> #include <string> #include <cstring> using namespace std; //统计第一行字符串在第二行中出现的次数 //先遍历第二行,每个元素的次数 //然后遍历第一行,看看 in ...
分类:
其他好文 时间:
2020-05-25 15:43:01
阅读次数:
54
分析: (1) 程序一直有错,半天才发现是自己的命名有问题;谨慎命名; (2) 切记退出循环 (3)学会调试 #include <iostream>#include <cstring>#include <vector>#include <cstdio>#include <cmath>using na ...
分类:
其他好文 时间:
2020-05-25 15:22:48
阅读次数:
45
本文主要分析怎么计算出联通光猫HG220GS-U的管理员帐号CUAdmin的密码。 ...
分类:
移动开发 时间:
2020-05-25 00:29:16
阅读次数:
544
线性DP 最长上升子序列 O(n^2)的基础算法 方程:f[i]=max(f[j]+1) j∈i+1~n ps:每个位置的初始长度都是1!!!! //最长上升序列 #include <iostream> #include <cstring> #include <cstdio> #include <c ...
分类:
其他好文 时间:
2020-05-24 00:43:07
阅读次数:
40
在Gooogle I/O 2013年的大会上面,展示的Volley库,已经成为android开发中最常用的处理和缓存网络请求的库。如果你还没有看过Gooogle I/O中关于Volley的介绍(https://developers.google.com/events/io/sessions/3253 ...
分类:
Web程序 时间:
2020-05-23 18:45:57
阅读次数:
63
分析: 使用字符串拼接 #include <iostream>#include <cstring> using namespace std;int main(){ int score; string tem1,tem2, stuma , stumi; int max=-1 , min=10000;i ...
分类:
其他好文 时间:
2020-05-22 19:04:14
阅读次数:
45
#include "stdafx.h" #include "iostream" #include "cstring" #include "string" using namespace std; int a,b,c,d; int main() {for (c=0;c>=0;c++) //此处可用替换 ...
分类:
其他好文 时间:
2020-05-21 09:33:03
阅读次数:
205
Describe 春天到了, HDU校园里开满了花, 姹紫嫣红, 非常美丽. 葱头是个爱花的人, 看着校花校草竞相开放, 漫步校园, 心情也变得舒畅. 为了多看看这迷人的校园, 葱头决定, 每次上课都走不同的路线去教室, 但是由于时间问题, 每次只能经过k个地方, 比方说, 这次葱头决定经过2个地方 ...
分类:
其他好文 时间:
2020-05-18 18:49:16
阅读次数:
57