最近开始研究单片机相关的知识,好多名词都容易混淆,所以做了个总结,可以直接用来查找索引,持续更新ing
CPU
Central Processing Unit,中央处理器,是一台计算机的运算核心和控制核心。它的功能主要是解释计算机指令以及处理计算机软件中的数据。中央处理器主要包括运算器(ALU,ArithmeticLogic
Unit)和高速缓冲存储器(Cache)及实现它们之间联系...
分类:
其他好文 时间:
2015-01-30 19:45:58
阅读次数:
217
要实现这样一个页面,上面的好说,下面的是一个滑动视图,我们想到的是用viewpager来实现,但是这个有一个问题,按照平时的写法,我们会写5个Activity放到viewpager里面去,这自然是可以实现的。但是这里有一个问题,一进来,在主界面manager.startActivity(id, intent).getDecorView();来取得view加到viewpager里,这样一启动,五个子...
分类:
其他好文 时间:
2015-01-30 19:44:43
阅读次数:
187
题目: How many prime numbersTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8513 Accepted Submission(s): 2716 Problem DescriptionGive you a lot...
分类:
其他好文 时间:
2015-01-30 19:45:59
阅读次数:
134
做个应用界面,需要批量查地址和ip,各地图网站一般都支持geocoding web api。
主要用到两个服务接口:geocode(把街道名转换成gps位置),reverse(把gps地址转换成街道名地址)...
分类:
其他好文 时间:
2015-01-30 19:45:55
阅读次数:
200
??
Modeling Simple Dependencies
建模简单的依赖
A common kind of dependency relationship is the connection between a class that uses another class as a parameter to an operation.
To model this u...
分类:
其他好文 时间:
2015-01-30 19:45:06
阅读次数:
139
??
Modeling Structural Relationships
建模结构关系
When you model with dependencies or generalization relationships, you may be modeling classes that represent different levels of importance or d...
分类:
其他好文 时间:
2015-01-30 19:43:44
阅读次数:
142
??
When you model relationships in the UML,
lUse dependencies only when the relationship you
are modeling is not structural.
lUse generalization only when you have an
“is-a-kind-of”
rela...
分类:
其他好文 时间:
2015-01-30 19:43:01
阅读次数:
135
原文地址: http://stackvoid.com/introduce-to-oath2.0/
可能你跟我一样,使用过各种第三方开放授权库(如在你的 APP 中获取 QQ 照片或微博评论等)来获取用户的一些资源,今天跟大家总结分享一下开放授权(OAuth2.0,1.0太复杂已经被弃用)的概念和原理,在以后使用开放授权SDK时能快速高效完成。
OAuth解决了什么问...
分类:
其他好文 时间:
2015-01-30 19:41:54
阅读次数:
233
#include
#include
#include
using namespace std;
int T;
int l,c;
double dp[2605][55][55];
bool b[2605][55][55];
double DP(int k,int x,int y){
if(x>=l&&y>=c)return 0;
if(b[k][x][y])return dp[k][...
分类:
其他好文 时间:
2015-01-30 19:43:26
阅读次数:
145
这些题比较考验边界条件
Find Minimum in Rotated Sorted Array
class Solution {
public:
int findMin(vector &num) {
int left = 0, right = num.size()-1;
while(num[left] > num[right]){
...
分类:
其他好文 时间:
2015-01-30 19:42:26
阅读次数:
120
题目链接:点击打开链接
题意:
给定n+1个点([0,n] )m条边的无向图。起点为0,k个人初始在起点,
去遍历图使得每个点至少被一人走过且遍历 i 点时 i-1 必须已经被遍历。
使得k人的路径和最小,最后k人要回到起点。
思路:
费用流,因为对于一个人来说,这个人遍历点的序列一定是一个递增序列(不需要连续)
所以建图时i的出点只需要连接i+? 的入点。
若建一个完全图则会因为...
分类:
其他好文 时间:
2015-01-30 19:42:08
阅读次数:
158
题目大意:模拟题,给你N个人,分为三个队,第一队是全部人的1/2,第二队是剩下人的2/3,
第三队是最后剩下的人。现在给每个队配备向导。每10个人配1个向导。不够10个的也配1个向导。
问:总共需要配多少个向导。
思路:第一队人数为N/2,第二队人数为(N-N/2)*2/3,第三队人数为(N-N/2)-(N-N/2)*2/3。
然后开始配备向导,每对人数先加上9,然后除以10,就算出了各队向导数。因为如果是10的整数
倍,除以10就没有任何影响,如果不是10的整数倍,那么除了满10个人配备1个向导外,剩下的...
分类:
其他好文 时间:
2015-01-30 19:42:37
阅读次数:
200
题目链接:点击打开链接
题意:给定由红绿蓝组成的一些矩阵
输出每种颜色对应的面积。
思路:
如果颜色只有一种就是扫描线。
这里先求出包含各类颜色的面积,然后容斥一下得到答案。
画个图就能快速得到答案了
#include
#include
#include
#include
#include
#include
#include
using namespace std; t...
分类:
其他好文 时间:
2015-01-30 19:41:48
阅读次数:
159
#include
#include
int check(int a,int m)
{
int b=0;
while(a>0)
{
if(a&1)
b++;
a>>=1;
}
if(b==m)
return 1;
return 0;
}
int main()
{
int n...
分类:
其他好文 时间:
2015-01-30 19:39:42
阅读次数:
173
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d =
target? Find all unique quadruplets in the array which gives the sum of target.
Note:
Element...
分类:
其他好文 时间:
2015-01-30 19:39:12
阅读次数:
198
.....
分类:
其他好文 时间:
2015-01-30 19:38:07
阅读次数:
442
WinHex数据恢复
恢复内存数据
读取内存 选择进程 Ctrl+F搜索内容 搜索到的内容可能是乱码 Edit保存选中内容 保存到文件,不用管提示 最后用记事本打开 不要用notpad2,默认编码不对
可以用于恢复最近输入的数据、网页上输入的数据等
克隆整个硬盘数据再恢复
为了防止手工恢复数据对磁盘...
分类:
其他好文 时间:
2015-01-30 19:38:36
阅读次数:
190