interface 关键字 声明接口 接口中的成员默认都是public 能力不一样的时候适合用接口 using System; using System.Collections; using System.Collections.Generic; namespace Dome { class dom ...
分类:
其他好文 时间:
2017-04-02 21:44:16
阅读次数:
165
缺c 计算几何没看 f一个模拟,不想写,难度不大,J,因为时间挺早的,题目都比较简单,没什么难度,组队出个8题还是轻松的 A:水题 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=1e3+5; 4 string s[ ...
分类:
其他好文 时间:
2017-04-01 20:00:19
阅读次数:
285
{ /// <summary> /// Cache manager interface /// </summary> public interface ICacheManager { /// <summary> /// Gets or sets the value associated with t ...
分类:
系统相关 时间:
2017-04-01 15:10:39
阅读次数:
293
笔记和代码的思路来源: 好大学慕课浙江大学陈越、何钦铭的《数据结构》 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 typedef int ElementType; 5 typedef struct Node *PtrToNode; 6 struct ...
分类:
其他好文 时间:
2017-03-31 21:44:51
阅读次数:
163
1 #include <bits/stdc++.h> 2 #define rep(i,a,b) for(int i = a;i <= b;++ i) 3 #define per(i,a,b) for(int i = a;i >= b;-- i) 4 #define mem(a,b) memset(( ...
分类:
其他好文 时间:
2017-03-31 21:23:23
阅读次数:
368
【bzoj4800】: [Ceoi2015]Ice Hockey World Championship N<=40所以如果直接dfs背包会TLE 考虑Meet-in-the-middle 如果把N个物品分成前后A B两段分别背包 分别在A B中可行的方案的花费记录在a b中 答案就是a[i]+b[j ...
分类:
其他好文 时间:
2017-03-31 12:56:00
阅读次数:
211
单例模式 单例模式确保某个类只有一个实例,而且自行实例化并向整个系统提供这个实例 关键字 : 三私一公 桥接模式 将抽象部分与具体实现相分离 <?php class Info{ public $lev; //发送等级:普通,重要,特级 public $target;//通过什么方式发送 //实际发送 ...
分类:
其他好文 时间:
2017-03-31 11:49:26
阅读次数:
157
I sighed and opened my eyes. 我叹气着睁开了眼睛 And Edward was staring at me curiously, that same, familiar edge of frustration even more distinct now in his b ...
分类:
其他好文 时间:
2017-03-29 23:53:15
阅读次数:
354
http://poj.org/problem?id=3020 首先注意到,答案的最大值是'*'的个数,也就是相当于我每用一次那个技能,我只套一个'*',是等价的。 所以,每结合一对**,则可以减少一次使用,所以就是找**的最大匹配数目。 对于每一个*,和它的上下左右连接一条边(如果是*才连) 那么, ...
分类:
其他好文 时间:
2017-03-27 10:56:41
阅读次数:
195
题目背景 mzc与djn的…还没有众人皆知,所以我们要来宣传一下。 题目描述 mzc家很有钱(开玩笑),他家有n个男家丁,现在mzc要将她们全都聚集起来(干什么就不知道了)。现在知道mzc与男家丁们互相之间通信的时间,请算出把他们每个人叫到需要的总时间(要重复的哦)。保证能把他们每个人叫到。 输入输 ...
分类:
其他好文 时间:
2017-03-26 17:23:20
阅读次数:
301