码迷,mamicode.com
首页 >  
搜索关键字:forest    ( 387个结果
HDU 4941 Magical Forest 【离散化】【map】
离散化...
分类:其他好文   时间:2014-08-13 01:12:34    阅读次数:213
HDU 4941 Magical Forest STL
这明明就是给纯C选手的大杀器啊。题意:给你k坐标,表示 X,Y 有值C,有 3种操作1) 交换A,B两行2) 交换A,B两列3) 询问(A,B)的值解题思路:map离散化解题代码:// File Name: 1007.cpp// Author: darkdream// Created Time: 2...
分类:其他好文   时间:2014-08-13 00:39:44    阅读次数:259
hdu 4941 Magical Forest
被虐了一下午。。离散化,开一个rr[mnx], cc[mnx],初始化为rr[i] = i, cc[i],然后换的时候就换这两个数组就好了。。然后就是不断的lower_bound 1 #include 2 #include 3 #include 4 #include 5 #include 6 #in...
分类:其他好文   时间:2014-08-13 00:35:54    阅读次数:289
hdu4941 Magical Forest
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-12 22:19:04    阅读次数:488
hdu 4941 Magical Forest (map容器)
Magical Forest Time Limit: 24000/12000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 135    Accepted Submission(s): 69 Problem Description There is a...
分类:其他好文   时间:2014-08-12 22:18:44    阅读次数:475
hdu 4941 Magical Forest(STL map & 结构体运用)
hdu 4941 Magical Forest(STL map & 结构体运用)...
分类:其他好文   时间:2014-08-12 22:15:54    阅读次数:382
Magical Forest
Problem DescriptionThere 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...
分类:其他好文   时间:2014-08-12 21:51:34    阅读次数:225
hdu4941 Magical Forest (stl map)
2014多校7最水的题Magical ForestMagical ForestTime Limit: 24000/12000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 253Acc...
分类:其他好文   时间:2014-08-12 21:43:54    阅读次数:310
HDU 4941
Magical ForestProblem DescriptionThere is a forest can be seen as N * M grid. In this forest, there is some magical fruits, These fruits can provide a...
分类:其他好文   时间:2014-08-12 21:37:34    阅读次数:194
HDU 4941 Magical Forest _(:зゝ∠)_ 模拟题
模拟大法保平安_(:зゝ∠)_  #include #include #include #include using namespace std; const int N = 1; struct node{ int x, y, val; node(int a=0,int b=0,int c=0):x(a),y(b),val(c){} bool operator<(...
分类:其他好文   时间:2014-08-12 19:07:44    阅读次数:224
387条   上一页 1 ... 35 36 37 38 39 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!