Problem. 1 Junior - Thinking Desc. & Link. 注意到值域乘范围刚好能过。 然后就存两个桶即可。。。(数组开小飞了半天才调出来。。。) Problem. 2 Junior / Senior - Thinking Desc. & Link. 考虑一次反转后对整个序 ...
分类:
其他好文 时间:
2020-12-02 12:27:43
阅读次数:
4
final关键字代表最终的,不可改变的 常见的四种用法 修饰类 当final修饰一个类的时候 格式: public final class 类名名{ //。。。 //。。。 } //被final修饰的类代表这个类不能被其它类继承。(方法不能被重写)(这个类依然拥有父类) //比如:String类、S ...
分类:
其他好文 时间:
2020-11-30 16:16:17
阅读次数:
11
package com.example.test3; import android.app.AliasActivity; import android.app.ProgressDialog; import android.os.Bundle; import android.view.View; im ...
分类:
移动开发 时间:
2020-11-30 16:11:54
阅读次数:
19
简介 MAT 是Memory Analyzer的简称,他是一宽功能强大的Java堆内存分析器。多用于查找内存泄露以及查看内存消耗情况。 基于Eclipse开发,是一款免费的Java性能分析功能 下载安装 https://www.eclipse.org/mat/downloads.php 分析dump ...
分类:
编程语言 时间:
2020-11-30 16:10:09
阅读次数:
11
题目 题目链接:https://www.ybtoj.com.cn/contest/62/problem/3 思路 可以看做有多少个 $1\sim n$ 的排列满足对于一条路径 \(u\to v\),\(u\) 在序列中的位置一定在 \(v\) 在序列中的位置的前面。 设 \(f[x][i]\) 表示 ...
分类:
其他好文 时间:
2020-11-30 15:20:42
阅读次数:
2
https://pintia.cn/problem-sets/1218774283169423360/problems/1218774532776648715 #include <cstdio> #include <iostream> #include <algorithm> #include <s ...
分类:
其他好文 时间:
2020-11-27 11:32:22
阅读次数:
6
MapReduce既是一个编程模型,也是一个计算组件,处理的过程分为两个阶段,Map阶段:负责把任务分解为多个小任务,Reduce负责把多个小任务的处理结果进行汇总。其中Map阶段主要输入是一对Key-Value,经过map计算后输出一对Key-Value值;然后将相同Key合并,形成Key-Value集合;再将这个Key-Value集合转入Reduce阶段,经过计算输出最终Key-Value结果集。
分类:
其他好文 时间:
2020-11-26 14:53:23
阅读次数:
6
1,环境安装 ## #编译环境 yum groupinstall -y "Development Tools" ##cat cpu_load #以下为代码 #include <iostream> #include <pthread.h> #include <time.h> #include <mat ...
分类:
系统相关 时间:
2020-11-26 14:19:38
阅读次数:
10
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted i ...
分类:
其他好文 时间:
2020-11-25 12:59:50
阅读次数:
14
1,将堆信息导入到mat中分析,查看index.html 2,加载后首页如下图,在首页上比较有用的是Histogram和Leak Suspects。 Leak Suspects Report(内存泄露报告) 3, 点击Details进入详情页面。在详情页面Shortest Paths To the ...
分类:
其他好文 时间:
2020-11-25 12:41:31
阅读次数:
4