题意:自行脑补
思路:网络流,建模显然,若满流则可以
代码:#include
#include
#include
#include
#include
#include
using namespace std;
#define INF 0x3f3f3f3f
queue q;
struct Solver {
int head[200], next[6010], end[...
分类:
其他好文 时间:
2014-10-17 12:08:28
阅读次数:
169
登陆进入服务器
[root@gzmtest_25 ~]# su - mysql
[mysql@gzmtest_25 ~]$ mysql.local
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 126000553
Server version: 5.5.27-l...
分类:
数据库 时间:
2014-10-17 11:54:33
阅读次数:
435
delphiuse Vcl.Clipbrdprocedure TForm27.FormCreate(Sender: TObject);begin Caption := Clipboard.AsText;end;不用创建对象,直接使用剪贴板#include Caption = Clipboard()-...
分类:
编程语言 时间:
2014-10-17 09:57:35
阅读次数:
188
??
use MyItcast
--求1--100的和
declare @sum int=0,@number int=1;
while(@number
begin
set @sum=@sum+@number;
set @number=@number+1;
end
select @sum
--求1--100之间所有基数和
declare @sum int=0,@num in...
分类:
数据库 时间:
2014-10-16 23:09:03
阅读次数:
328
#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; NSArray *arra...
分类:
其他好文 时间:
2014-10-16 22:35:33
阅读次数:
161
#import "ViewController.h"@interface ViewController (){ }@property (nonatomic,strong) dispatch_semaphore_t sema;@end@implementation ViewControll...
分类:
其他好文 时间:
2014-10-16 20:24:43
阅读次数:
170
先把行合并,然后二分一下最小值就好。// BEGIN CUT HERE// END CUT HERE#line 5 "ChocolateDividingHard.cpp"#include #include #include #include #include #include #include #i...
分类:
其他好文 时间:
2014-10-16 20:06:13
阅读次数:
261
1 val() ;//获取value属性的值2 eq(index);//按照索引选择元素3 css('样式名称',[样式值]) ;//设置css样式4 end(); //返回前一个jQuery对象,常用语链式操作
分类:
Web程序 时间:
2014-10-16 19:23:13
阅读次数:
141
一、如何定义关联
两个model之间常常会存在关联关系,为了解决这些关联引起的复杂操作问题,可以在model定义时定义其关联关系。如:实体customers和orders定义如下:
class
Customer
has_many
:orders, dependent:
:destroy
end
class
Order...
分类:
其他好文 时间:
2014-10-16 14:55:32
阅读次数:
152
c++中一次读取整个文件的内容的方法:读取至char*的情况std::ifstream t; int length; t.open("file.txt"); // open input file t.seekg(0, std::ios::end); // go to the e...
分类:
编程语言 时间:
2014-10-16 12:38:02
阅读次数:
328