码迷,mamicode.com
首页 >  
搜索关键字:magical record    ( 2306个结果
HDU4941:Magical Forest(map)
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
SGU 167.I-country
时间限制: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
[Erlang之旅 0005] ETS 和Record
ETS 提供“键-值” 搜索表, 驻留在内存中,速度较快。是缓存的大利器。record 作为erlang的一种数据结构,通常用于函数量传递。ETS中创建表, 对数据进行增、删、改、查 , 及关闭表常用的函数 ets:new(Name, Options) -> tid() %% 创建表 Op...
分类:其他好文   时间:2014-08-14 23:18:36    阅读次数:331
OGG-01028 Incompatible Record解决办法
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
STL : map函数的运用 --- hdu 4941 : Magical Forest
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
hdu 4941 Magical Forest ( 双重map )
题目链接题意:有一个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
hdu 4941 Magical Forest(Map)
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
HDU 4941 Magical Forest(map映射+二分查找)杭电多校训练赛第七场1007
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4941解题报告:给你一个n*m的矩阵,矩阵的一些方格中有水果,每个水果有一个能量值,现在有三种操作,第一种是行交换操作,就是把矩阵的两行进行交换,另一种是列交换操作,注意两种操作都要求行或列至少要有一个水...
分类:其他好文   时间:2014-08-13 14:48:56    阅读次数:198
hdu 4941 Magical Forest(STL之map应用)2014多校训练第7场
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
HDU4941Magical Forest (二分+链表优化)
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!