题目:有一个地图,地图上有运行的规则(移动到东西南北四个方向),现在给你起始点,求最后的状态。
分析:模拟。直接从起始点出发,按照地图的规则移动即可。记录每个点到达时走的步数,计算环。
说明:这题目也很眼熟(⊙_⊙)。
#include
#include
#include
#include
using namespace std;
char maps[100][100];
int...
分类:
其他好文 时间:
2014-10-18 12:37:20
阅读次数:
169
上代码:
Person p1 = new Person("xiaoer",1);
Person p2 = new Person("san",4);
Map maps = new HashMap();
maps.put(p1, "1111");
maps.put(p2, "2222");...
分类:
编程语言 时间:
2014-10-16 03:40:11
阅读次数:
296
题目:求所给单词的负数形式。
分析:模拟。直接按章题意分情况求解即可。
说明:按语法也可以(⊙_⊙)。
#include
#include
#include
#include
using namespace std;
char word[22][22],maps[22][22],text[25];
int cmp(char *s, char c)
{
for (int i =...
分类:
其他好文 时间:
2014-10-15 18:58:11
阅读次数:
165
1. json-lib是一个java类库,提供将Java对象,包括beans, maps, collections, java arrays and XML等转换成JSON,或者反向转换的功能。2. json-lib 主页 :http://json-lib.sourceforge.net/3.执行环...
分类:
编程语言 时间:
2014-10-13 12:18:19
阅读次数:
197
function initialize() {
var myLatlng = new google.maps.LatLng(39.95745,116.32764);
var myOptions = {
zoom: 18,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP...
google map display incorrectTo remove the grayness, according tohttps://angular-ui.github.io/angular-google-maps/#!/faq:If rendering starts before ele...
分类:
Web程序 时间:
2014-10-09 13:39:43
阅读次数:
160
题目:统计一个有向图中,给定起点不能到达的点。
分析:图论,搜索。直接利用dfs遍历即可。
说明:起始点开始属于未被遍历的点,注意初始化数据。
#include
#include
#include
using namespace std;
int maps[110][110];
int used[110];
void dfs(int s, int n)
{
for (int i...
分类:
其他好文 时间:
2014-10-07 12:31:53
阅读次数:
173
周五实验室有同学报告了ICCV2013的一篇论文group sparsity and geometry constrained dictionary learning for action recognition from depth maps。这篇文章是关于Sparsing Coding的。...
分类:
其他好文 时间:
2014-10-03 13:35:44
阅读次数:
324
十一小長假即將來臨,周向榮還準備窩在家裏坐等“鋒菲戀”的後續結果嗎?雖然宅男無罪,但是請不要繼續在論壇裏高呼“李亞鵬娶了張柏芝”等口號,放下你“不吐槽會死星人”的特質,走出家門去領略一下祖國的大好山河吧,關注微信號:cloudmapsuser順便參與一下Cloud maps 雲地圖的“全民旅遊來找茬...
分类:
其他好文 时间:
2014-09-29 15:44:01
阅读次数:
183
在Linux内核 2.6.16中引入了一个系统内存接口特性,这个接口位于/proc/$pid/目录下的smaps文件中,一看内容发现是进程内存映像信息,比同一目录下的maps文件更详细些。400df000-4048c000 r--s 00000000 1f:05 286 /data/d...
分类:
系统相关 时间:
2014-09-29 12:25:20
阅读次数:
261