Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color ...
分类:
其他好文 时间:
2020-01-29 21:48:12
阅读次数:
94
#include<iostream> #include<algorithm> #include<cstring> #include<cmath> using namespace std; #define x first #define y second const int N=210; typede ...
分类:
其他好文 时间:
2020-01-29 17:52:38
阅读次数:
92
#include<cstring> #include<iostream> #include<algorithm> #include<cmath> #include<cstdio> #define x first #define y second using namespace std; typede ...
分类:
Web程序 时间:
2020-01-29 15:56:54
阅读次数:
65
一、测试需求:测试20个用户访问web网站在负载达到30QPS时的平均响应时间 QPS:Query Per Second 每秒查询率。是一台查询服务器每秒能够处理的查询次数。在因特网上,作为域名系统服务器的性能经常用每秒查询率来衡量。 二、操作步骤 1、添加线程组(包含三个参数:线程数、准备时长、循 ...
分类:
其他好文 时间:
2020-01-28 22:52:47
阅读次数:
111
RLE编码,还不会,先搬运一下大佬的代码,理解之后再用Java自己实现 1 #include <map> 2 #include <vector> 3 #include <cstdlib> 4 #include <iostream> 5 using namespace std; 6 static in ...
分类:
编程语言 时间:
2020-01-28 15:48:37
阅读次数:
80
例一:对目录下的单词文件进行单词统计 /word/first.txt: /word/second.txt: /word/third.txt: 运行结果: import java.io.File; import java.io.PrintWriter; import scala.io.Source; ...
分类:
其他好文 时间:
2020-01-28 13:46:18
阅读次数:
76
题目链接:https://leetcode.com/problems/reverse-pairs/ 题意:求数组$nums$中所有满足$i<j$且$nums[i]>2*nums[j]$的数组对(i,j)的数目。 思路:该题很明显是逆序对的变形题,逆序对的条件是$nums[i]>nums[j]$,这里 ...
分类:
其他好文 时间:
2020-01-28 12:35:26
阅读次数:
67
Problem H: Road Construction King Mercer is the king of ACM kingdom. There are one capital and some cities in his kingdom. Amazingly, there are no roa ...
分类:
其他好文 时间:
2020-01-27 21:50:06
阅读次数:
53
ZOJ1002 —— Fire net Time Limit: 2000 ms Memory Limit: 65536 KB Suppose that we have a square city with straight streets. A map of a city is a square b ...
分类:
其他好文 时间:
2020-01-27 14:00:53
阅读次数:
112
这两天有新型病毒,吓得人都不敢出去,不过这也给我提供了更多刷题时间。 先来讲比赛吧,这场比赛算是比较水,也成为了第二个被我AK的abc。 https://atcoder.jp/contests/abc153 首先前四题实在太水了,这里也不多讲了。 第五题是一个经典的背包问题, 可以选择把空间开大一点 ...
分类:
其他好文 时间:
2020-01-27 12:35:54
阅读次数:
92