Problem Description
There is a forest can be seen as N * M grid. In this forest, there is some magical fruits, These fruits can provide a lot of energy, Each fruit has its location(Xi, Yi) and the ...
分类:
其他好文 时间:
2014-08-15 14:42:38
阅读次数:
308
时间限制:0.75s空间限制:6M题意: 在一个n*m(n,m> 12) % 16, (record >> 8) % 16, (record >> 4) % 16, record% 16, k - r + l - 1)得到 这道题需要注意的地方有很多,不一一列举.总的来说是一道值得一做...
分类:
其他好文 时间:
2014-08-15 02:36:46
阅读次数:
240
ETS 提供“键-值” 搜索表, 驻留在内存中,速度较快。是缓存的大利器。record 作为erlang的一种数据结构,通常用于函数量传递。ETS中创建表, 对数据进行增、删、改、查 , 及关闭表常用的函数 ets:new(Name, Options) -> tid() %% 创建表 Op...
分类:
其他好文 时间:
2014-08-14 23:18:36
阅读次数:
331
How to recover from an OGG-01028 Incompatible Record if the trail is not corrupt (Doc ID 1507462.1)Oracle GoldenGate - Version 9.5_EA and laterInforma...
分类:
其他好文 时间:
2014-08-14 20:28:19
阅读次数:
538
Magical ForestTime Limit: 24000/12000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 724Accepted Submission(s): 343Pr...
分类:
其他好文 时间:
2014-08-14 13:15:38
阅读次数:
224
题目链接题意:有一个n*m的田地,里边有k棵树,每棵树的位置为(xi,yi),含有能量值ci。之后又q个询问,分三种;1)1 a b,将a行和b行交换2)2 a b,将a列和b列交换3)3 a b,询问(a,b)位置的果树的能量值。分析:
分类:
其他好文 时间:
2014-08-14 10:26:58
阅读次数:
174
http://acm.hdu.edu.cn/showproblem.php?pid=4941
因为地图的行和列很大,操作次数也很多,直接循环模拟肯定不行。但可以用map映射一下,当交换行和列的时候,直接交换它们的映射值,直接O(1)进行交换。
#include
#include
#include
#include
#include
#include
#include...
分类:
其他好文 时间:
2014-08-13 22:39:17
阅读次数:
277
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4941解题报告:给你一个n*m的矩阵,矩阵的一些方格中有水果,每个水果有一个能量值,现在有三种操作,第一种是行交换操作,就是把矩阵的两行进行交换,另一种是列交换操作,注意两种操作都要求行或列至少要有一个水...
分类:
其他好文 时间:
2014-08-13 14:48:56
阅读次数:
198
Magical Forest
Time Limit: 24000/12000 MS (Java/Others) Memory Limit:
131072/131072 K (Java/Others)
Problem Description...
分类:
其他好文 时间:
2014-08-13 13:10:06
阅读次数:
214
Magical Forest
Time Limit: 24000/12000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
Total Submission(s): 510 Accepted Submission(s): 239
Problem Description
There is a forest c...
分类:
其他好文 时间:
2014-08-13 13:06:46
阅读次数:
231