Description
Railway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queue…
The Lunar New Year was approaching, but unluckily the Little ...
分类:
其他好文 时间:
2014-08-01 13:43:42
阅读次数:
193
题意:给一个无向图。每次查询破坏一条边,每次输出查询后连通图的个数。思路:并查集。逆向思维,删边变成加边。#include#include#include#include#include#define inf -100000000#define LL long long#define maxn 10...
分类:
Web程序 时间:
2014-08-01 13:17:11
阅读次数:
248
使用API函数:声明 FUNCTION ulong ShowScrollBar(ulong hwnd,ulong wBar,ulong bShow) LIBRARY "user32.dll"调用constant long SB_HORZ = 0constant long SB_VERT = 1con...
分类:
其他好文 时间:
2014-08-01 12:55:51
阅读次数:
161
在浏览网页的时候,如果有新的消息,如何接收到?HTTP协议不能由服务器主动给客户端发送消息。1、刷微博、逛论坛贴吧,想看最新的信息怎么办?F5刷新一下就OK了!2、上面一种方式是被动的,如果用户不去刷新页面,就看不到消息。如何让服务器主动推送消息给客户端浏览器,一种方式是用setInterval来Ajax定时刷新。这样一来,刷新操作不是由用户来操作,而是由浏览器去自动发起请求,用户无法察觉到,给用...
分类:
编程语言 时间:
2014-08-01 10:53:51
阅读次数:
284
it's been a long timewithout practicing~ almost everything about the C programming language.learn today: 1/ read the problem carefully. 2/no blank bet...
分类:
其他好文 时间:
2014-08-01 04:43:51
阅读次数:
251
关键代码: /// /// 获取文件大小—字节 /// /// 文件路径 /// 文件大小 public static long GetSize(string filePath) { long _size = 0; try { ...
分类:
其他好文 时间:
2014-08-01 04:40:42
阅读次数:
263
先上题目:Divide SumTime Limit:2000/1000MS (Java/Others)Memory Limit:128000/64000KB (Java/Others)SubmitStatusProblem Descriptionlong long ans = 0;for(int i...
分类:
其他好文 时间:
2014-08-01 04:38:51
阅读次数:
281
先上题目:Xor pairsTime Limit:2000/1000MS (Java/Others)Memory Limit:128000/64000KB (Java/Others)SubmitStatusProblem Descriptionlong long ans = 0;for(int i ...
分类:
其他好文 时间:
2014-08-01 04:35:00
阅读次数:
246
一个简单的dp,比赛的时候太坚信自己的小聪明没用二维数组一直WA到死;#include#include#define maxn 1009#define mod 1000000007using namespace std;int num[maxn];long long ci[maxn][1026],a...
分类:
其他好文 时间:
2014-07-31 23:41:00
阅读次数:
216
Divide SumTime Limit:2000/1000MS (Java/Others)Memory Limit:128000/64000KB (Java/Others)SubmitStatusProblem Descriptionlong long ans = 0;for(int i = 1;...
分类:
其他好文 时间:
2014-07-31 23:24:50
阅读次数:
236