首页 > 其他
dojo------做个简单的登录
引入dojo 引入css: <link?rel="stylesheet"?type="text/css"?href="${ctx}/static/js/dijit/themes/claro/claro.css"> 引入js: <script?type="text/javascript"?src="${ctx}/static/js/dojo/dojo.js"></scr...
分类:其他   时间:2015-08-17 21:55:31    收藏:0  评论:0  赞:0  阅读:158
IntelliJ IDEA 14安装Golang插件go-lang-idea-plugin
1,下载IntelliJ IDEA旗舰版,我用的是14.1.3版本: http://www.jetbrains.com/idea/download/ ? 2. 下载golang官方SDK和go-lang-idea-plugin插件源码 http://golang.org/dl/?(要翻==墙) https://github.com...
分类:其他   时间:2015-08-17 21:55:11    收藏:0  评论:0  赞:0  阅读:574
多态&抽象&继承
多态 package cn.itcast.extend; public class ExtendDemo2 { public static void main(String[] args) { A a=new B();//多条 System.out.println(a.num); a.show();//非静态 a.say();//静态方法 } } class A{ int ...
分类:其他   时间:2015-08-17 21:54:01    收藏:0  评论:0  赞:0  阅读:239
lua——元表、元方法、继承
【元表】 元表中的键为事件(event),称值为元方法(metamethod)。 通过函数getmetatable查询任何值的元表,通过函数setmetatable替换表的元表。 setmetatable(只能用于table)和getmetatable(用于任何对象) 语法:setmetatable (table, metatable),对指定table设置metatable   ...
分类:其他   时间:2015-08-17 21:52:51    收藏:0  评论:0  赞:0  阅读:219
UIView添加手势 然后UITableView 添加进这个View 导致UITableView 的单元格点击事件无效
#import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; UIView * v = [[UIView alloc] initWithFrame:CGRect...
分类:其他   时间:2015-08-17 21:52:41    收藏:0  评论:0  赞:0  阅读:208
BZOJ1009
传送门:BZOJ1009KMP构造转移矩阵,矩阵加速DP。 以后题解都会简单一些。/************************************************************** Problem: 1009 User: Jerusalem Language: C++ Result: Accepted Time:56 ms...
分类:其他   时间:2015-08-17 21:52:31    收藏:0  评论:0  赞:0  阅读:305
hdu1875 畅通工程再续 并查集+kruskal最小生成树
Problem Description 相信大家都听说一个“百岛湖”的地方吧,百岛湖的居民生活在不同的小岛中,当他们想去其他的小岛时都要通过划小船来实现。现在政府决定大力发展百岛湖,发展首先要解决的问题当然是交通问题,政府决定实现百岛湖的全畅通!经过考察小组RPRush对百岛湖的情况充分了解后,决定在符合条件的小岛间建上桥,所谓符合条件,就是2个小岛之间的距离不能小于10米,也不能大于1000米。...
分类:其他   时间:2015-08-17 21:52:21    收藏:0  评论:0  赞:0  阅读:319
输入挂
输入挂,原理是把文件里面的东西用fread一次性读到内存。 使用时必须 #include “cctype”, 先调用 IO:init(); 然后全部用 IO:readint() 读入数据;namespace IO { const static int maxn = 200 << 20; static char buf[maxn], *pbuf = buf, *End;...
分类:其他   时间:2015-08-17 21:52:00    收藏:0  评论:0  赞:0  阅读:180
uva 12304 - 2D Geometry 110 in 1!(几何)
题目链接:uva 12304 - 2D Geometry 110 in 1! 没什么好说的,根据操作直接处理。 #include #include #include #include #include using namespace std; const double pi = 4 * atan(1); const double eps = 1e-9; inlin...
分类:其他   时间:2015-08-17 21:51:51    收藏:0  评论:0  赞:0  阅读:193
多文档自动文摘:Multi-Document Summarization,MDS
...
分类:其他   时间:2015-08-17 21:51:40    收藏:0  评论:0  赞:0  阅读:210
POJ 1251 Jungle Roads (最小生成树)
POJ 1251 Jungle RoadsDescription The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years ago. But the jung...
分类:其他   时间:2015-08-17 21:51:31    收藏:0  评论:0  赞:0  阅读:254
UVa 514 - Rails
https://uva.onlinejudge.org/external/5/514.pdf514 Rails There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately, fun...
分类:其他   时间:2015-08-17 21:51:11    收藏:0  评论:0  赞:0  阅读:267
HDU 2491 Priest John's Busiest Day(贪心)
题目链接 题意: n场婚礼 给定每场婚礼的开始和结束时间,要求每场婚礼至少举行一半以上(不包括一半) 如果可行输出YES,否则输出NO 思路: 算出每场婚礼的至少要举行的时间t, 最早的结束时间mid 以最早结束时间mid为第一变量,开始时间s为第二变量从小到大排序 用cnt记录举办完每场婚礼的结束时间 分三种情况: ①加参前当婚礼的时间够不一半 ②果加参婚礼时婚礼已开始,结...
分类:其他   时间:2015-08-17 21:51:01    收藏:0  评论:0  赞:0  阅读:250
Hdu oj 1874 畅通工程续
题目:点击打开链接 #include #include #define INF 0x3f3f3f3f using namespace std; bool used[210]; int cost[210][210],d[210]; int m,n; int o,p; void dijkstra(int x) { for(int i=0;i<m;i++) { d[...
分类:其他   时间:2015-08-17 21:50:50    收藏:0  评论:0  赞:0  阅读:106
hdu 1869 六度分离
本题链接:点击打开链接 本题大意:         输入n和m,标号为0--(n-1),有m组数据,每组数据代表两人有关系,证明“六度分离”说法的正确性。 解题思路:          本题亦可看做求距离,不妨将认识的两人之间的权值记为1,则就变成了看是否有人之间的距离大于7(即最多相隔六个人)。求每人之间的距离使用dijkstra算法。 参考代码: #include #includ...
分类:其他   时间:2015-08-17 21:50:40    收藏:0  评论:0  赞:0  阅读:143
DNS原理及解析流程
1,what is DNS? DNS 是domain name system 的英文缩写,中文名是域名系统,作为IP地址与域名之间相互转化的一个分布式数据库。可以理解成一个在ip地址与域名之间的一个翻译员。 2.DNS的工程流程是什么? 当我们在浏览器输入网页的时候不可能记住每一个网站的ip地址,而是输入某个网页的网页地址(域名地址),然后通过DNS将我们入职的域名地址转换为对应的i...
分类:其他   时间:2015-08-17 21:50:30    收藏:0  评论:0  赞:0  阅读:260
POJ 题目3080 Blue Jeans(KMP+暴力)
Blue Jeans Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 14303   Accepted: 6367 Description The Genographic Project is a research partnership between IBM and...
分类:其他   时间:2015-08-17 21:50:21    收藏:0  评论:0  赞:0  阅读:169
hdu 1233 还是畅通工程 (最小生成树)
hdu 1233 还是畅通工程Description 某省调查乡村交通状况,得到的统计表中列出了任意两村庄间的距离。省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可),并要求铺设的公路总长度为最小。请计算最小的公路总长度。Input 测试输入包含若干测试用例。每个测试用例的第1行给出村庄数目N ( < 100 );随后的N(N...
分类:其他   时间:2015-08-17 21:50:10    收藏:0  评论:0  赞:0  阅读:228
手动扩栈
方案一:(普通版)#pragma comment(linker, "/STACK:102400000,102400000")方案二:(汇编版)const int main_stack = 16; char my_stack[128<<20];int main() { __asm__("movl %%esp, (%%eax);\n"::"a"(my_stack):"memory");...
分类:其他   时间:2015-08-17 21:50:01    收藏:0  评论:0  赞:0  阅读:272
BZOJ1798
传送门:BZOJ1798双状态的线段树,注意优先级。#include #include #include #include #include using namespace std;struct Node{ int ls,rs; long long w; long long...
分类:其他   时间:2015-08-17 21:49:51    收藏:0  评论:0  赞:0  阅读:184
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!