ArcGIS Engine 开发(二)线、圆、矩形、面、文本编辑功能...
分类:
其他好文 时间:
2015-04-03 09:26:00
阅读次数:
403
背景:多久没有一次ac过了,要提升一次ac的几率啊!这对比赛是很重要的。
思路:这个题主要是更加熟悉了下vector,然后就是一些格式的问题,构造即可。主要感受还是一定要把思路想好再写题!#include
#include
#include
#include
#include
#include
#include
#include
#include
#define LL long...
分类:
其他好文 时间:
2015-04-03 09:24:00
阅读次数:
102
Android开发中,Handler用的非常多,因为它和AsyncTask一样是系统提供给我们的异步的通信机制。能够将一些更新和别的不适合放在UI主线程的操作放到它们中去。
Handler的作用主要有两个:一是在线程中发送消息, 二是获取和处理消息。既可以发送消息sendEmptyMessage(int what) ,也可以发送指定的消息sendMessage(Message msg),还可以利...
分类:
其他好文 时间:
2015-04-03 09:25:07
阅读次数:
155
1.一个二分图中的最大匹配数等于这个图中的最小点覆盖数
König定理是一个二分图中很重要的定理,它的意思是,一个二分图中的最大匹配数等于这个图中的最小点覆盖数。如果你还不知道什么是最小点覆盖,我也在这里说一下:假如选了一个点就相当于覆盖了以它为端点的所有边,你需要选择最少的点来覆盖所有的边。
2。最小路径覆盖=最小路径覆盖=|G|-最大匹配数
在一个N*N的有向图中,路径覆盖就是在图...
分类:
其他好文 时间:
2015-04-03 09:25:24
阅读次数:
116
The calculation of GPA
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 21967 Accepted Submission(s): 5046
Problem Description
每学...
分类:
其他好文 时间:
2015-04-03 09:20:59
阅读次数:
161
按自己的思想简单写了一下,多多交流。#include "stdafx.h"
int insertInOrder(int *a,int num,int len){
int position;
if (a[0]==0)
{
a[0] = num;
position = 1;
}
for (int i = 0; i a[i] && n...
分类:
其他好文 时间:
2015-04-03 09:22:10
阅读次数:
120
N!Again
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3871 Accepted Submission(s): 2070
Problem Description
WhereIsHeroFrom: ...
分类:
其他好文 时间:
2015-04-03 09:21:10
阅读次数:
113
UVA - 10716
Evil Straw Warts Live
Time Limit: 3000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
Submit Status
Description
Problem D: Evil Straw Warts...
分类:
其他好文 时间:
2015-04-03 09:22:28
阅读次数:
134
bestcoder #35 AB详细题解+代码~...
分类:
其他好文 时间:
2015-04-03 09:19:38
阅读次数:
133
题目链接:word-search
/**
*
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell,
where "adjacent" cells...
分类:
其他好文 时间:
2015-04-03 09:19:28
阅读次数:
148
圆桌会议
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 3356 Accepted Submission(s): 2351
Problem Description
HDU ACM集训队的队员在暑假集训时经常要讨论自...
分类:
其他好文 时间:
2015-04-03 09:19:06
阅读次数:
137
敌兵布阵
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 51303 Accepted Submission(s): 21473
Problem Description
C国的死对头A国这段时间正在进...
分类:
其他好文 时间:
2015-04-03 09:21:09
阅读次数:
124
题目:Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
判断两棵二叉树是否相同。...
分类:
其他好文 时间:
2015-04-03 09:18:52
阅读次数:
138
经常会遇到文件操作,这时,从文件输入和输出到文件不可少。
freopen函数用来重定向输入和输出,不过这个函数有个缺点:只能输入和输出只能定向到一个文件,比如fp1=freopen("data1,in", "r", stdin);fp2=freopen("data2,in", "r", stdin);输入都会变成从data2.in中输入。
而fopen函数可以方便实现从几个文件中读取函数,相应...
分类:
其他好文 时间:
2015-04-03 09:18:13
阅读次数:
112