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
题目链接:hdu 4941 Magical Forest
题目大意:给定N,M和K,表示在一个N*M的棋盘上有K个棋子,给出K个棋子的位置和值,然后是Q次操作,对应的是:
1 a b :交换a和b两行2 a b : 交换a和b两列3 a b :查询a b这个位置上棋子的值,没有棋子的话输出0
解题思路:一开始X[i]=i,X[j]=j,如果需要交换i和j,那么就令X[i]=j,X...
分类:
其他好文 时间:
2014-08-12 18:59:04
阅读次数:
204
题目: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 .....
分类:
其他好文 时间:
2014-08-12 18:34:54
阅读次数:
282
用map存信息,各种标记,各种。。。写的很乱,表在意。。。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 map mm[100005]; 8 map c; 9 map...
分类:
其他好文 时间:
2014-08-12 18:32:44
阅读次数:
209
DNS配置篇二一、子域配置1、基本概念子域的作用是在本地DNS下再划分一个小的(子)DNS。作用的方便集中管理,不过问题是要配置转发。父DNS可以知道解析子DNS,子DNS则只可以解析自己本地记录,不能解析父DNS。正向子域授权:只需要在父域的区域解析库中添加“胶水记录”,gluer..
分类:
其他好文 时间:
2014-08-08 02:08:35
阅读次数:
316
TMessage = packed record Msg: Cardinal; case Integer of 0: ( WParam: Longint; LParam: Longint; Result: Longint); 1: ( WParamLo: Word; WParamHi: Word; ...
分类:
其他好文 时间:
2014-08-08 01:45:35
阅读次数:
176
create() ->mnesia:create_table(?ID_TABLE, [{disc_copies, [node()]}, {attributes, record_info(fields, unique_id)}]),Fun = fun(Old) ->#game_server_data{...
分类:
数据库 时间:
2014-08-07 21:43:30
阅读次数:
241