此博客链接:https://www.cnblogs.com/ping2yingshi/p/12268487.html 1。发工资 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2021 Problem Description 作为杭电的老师,最盼望的日 ...
分类:
其他好文 时间:
2020-02-06 15:02:22
阅读次数:
97
Problem Description Input include include include using namespace std; vector desk; int main(){ int n, m; while (~scanf ("%d %d", &n, &m)){ desk.clear ...
分类:
其他好文 时间:
2020-02-05 21:49:21
阅读次数:
66
为何在Fresco,Glide这么强大的背景下,我又想起了当初的Picasso,又为何写这篇文章?是因为最近项目采用了square公司的RxAndroid,Retrfit和OKhttp, 不得不联想到这个公司曾经还有款图片加载Picasso,所以采用了square公司的全家桶来进行项目开发,为了减少... ...
分类:
Web程序 时间:
2020-02-05 10:08:26
阅读次数:
104
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2047 思路:先是列出了四个,但是没发现规律,然后开始画递归树,在其中找到了规律,算出递归式为f(n) = 2*[f(n-1)+f(n-2)] 递归树分析如下(有点潦草,看不懂可以留言,大致模型为嵌套): ...
分类:
编程语言 时间:
2020-02-04 20:18:33
阅读次数:
85
Switch Game 原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=2053Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem ...
分类:
其他好文 时间:
2020-02-04 15:40:35
阅读次数:
71
You are given a positive integer n, please count how many positive integers k satisfy kk≤nkk≤n. InputThere are no more than 50 test cases. Each case o ...
分类:
其他好文 时间:
2020-02-04 12:22:03
阅读次数:
55
此博客链接:https://www.cnblogs.com/ping2yingshi/p/12258409.html 偶数求和(98min) 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2015 Problem Description 有一个长度为n ...
分类:
其他好文 时间:
2020-02-04 11:11:16
阅读次数:
72
题意: 给你一堆单词与询问,每次询问给一个字符串s问以s为前缀的字符串有多少 思路: #include<iostream> #include<algorithm> #include<cstring> using namespace std; const int maxn=400009; struct ...
分类:
编程语言 时间:
2020-02-03 22:28:15
阅读次数:
99
http://acm.hdu.edu.cn/showproblem.php?pid=3038 大致题意: 有一个区间[0,n],然后会给出你m个区间和,每次给出a,b,v,表示区间[a,b]的区间和为v,但每次给出的区间可能与之前的有冲突,问这样起冲突的区间共有多少个 首先区间[a,b]的和可由区间 ...
分类:
其他好文 时间:
2020-02-03 19:29:00
阅读次数:
78
题:http://acm.hdu.edu.cn/showproblem.php?pid=2222 学习出:https://bestsort.cn/2019/04/28/402/ 主要是fail的建立。在跳的过程就是不断跳fail,而不是跳到一个fail再往下!! #include<iostream> ...
分类:
其他好文 时间:
2020-02-03 15:34:16
阅读次数:
64