这明明就是给纯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
被虐了一下午。。离散化,开一个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
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
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 & 结构体运用)...
分类:
其他好文 时间:
2014-08-12 22:15:54
阅读次数:
382
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
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
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
模拟大法保平安_(:зゝ∠)_
#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