首页 > 其他
【POJ 2484】A Funny Game
Description Alice and Bob decide to play a funny game. At the beginning of the game they pick n(1 <= n <= 10 6) coins in a circle, as Figure 1 shows.
分类:其他   时间:2016-02-06 01:43:37    收藏:0  评论:0  赞:0  阅读:193
第十四天
希望你明天不要脚疼吧,今天你十点就睡了,不错,应该是累着了吧。祝你平安! -----宝宝
分类:其他   时间:2016-02-06 01:43:21    收藏:0  评论:0  赞:0  阅读:149
INTERIGHT 京东自营旗舰店-京东 要把凡客给弄残啊这是。。
INTERIGHT 京东自营旗舰店-京东
分类:其他   时间:2016-02-06 01:43:13    收藏:0  评论:0  赞:0  阅读:147
最短路径 Floyd && spfa
floyd算法是一个很强大的算法,它可以计算任意两点之间的最短路径,其边可以为负值。时间复杂度n^3 1 void floyd() 2 { 3 int k,u,v; 4 for(k=0;k<G.vunm;k++) 5 for(u=0;u<G.vunm;u++) 6 for(v=0;v<G.vunm;
分类:其他   时间:2016-02-06 01:42:49    收藏:0  评论:0  赞:0  阅读:137
创建immutable类
不可变对象(immutable objects) 那么什么是immutable objects?什么又是mutable Objects呢? immutable Objects就是那些一旦被创建,它们的状态就不能被改变的Objects,每次对他们的改变都是产生了新的immutable的对象,而muta
分类:其他   时间:2016-02-06 01:42:33    收藏:0  评论:0  赞:0  阅读:144
schedule_unknown
package amazon; import introJAVA.newTestJava; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.
分类:其他   时间:2016-02-06 01:42:08    收藏:0  评论:0  赞:0  阅读:136
POJ 2406 Power Strings
只要判断前面一截能不能成为字符串的一部分(整除)即可。 #include<iostream>#include<cstdio>#include<cstring>#define maxn 1000005using namespace std;int next[maxn],l;char s[maxn];v
分类:其他   时间:2016-02-06 01:41:35    收藏:0  评论:0  赞:0  阅读:136
[Redux] Passing the Store Down Implicitly via Context
We have to write a lot of boiler plate code to pass this chore down as a prop. But there is another way, using the advanced React feature called conte
分类:其他   时间:2016-02-06 01:41:28    收藏:0  评论:0  赞:0  阅读:203
Circuit Breaker Pattern(断路器模式)
Handle faults that may take a variable amount of time to rectify when connecting to a remote service or resource. This pattern can improve the stabili
分类:其他   时间:2016-02-06 01:41:20    收藏:0  评论:0  赞:0  阅读:175
浅拷贝与深度拷贝(原型模式)
Delphi的VCL从TPersistent开始支持RTTI(RuntimeTypeInfo)运行时类型信息,它是通过{$M+}编译指令提供了RTTI的功能.M打开以后,Delphi在编译该对象时,会把对象的类型信息编译进可执行文件,这样在运行时就可以动态地获得对象的属性和方法等信息.因为所有的VC
分类:其他   时间:2016-02-06 01:41:03    收藏:0  评论:0  赞:0  阅读:276
react-native之旅-1.安装
1.安装nodejs,集成了npm 官网下载http://nodejs.cn/ 2.由于众所周知的网络原因,react-native命令行从npm官方源拖代码时会遇上麻烦。请先将npm仓库源替换为国内镜像: npm config set registry https://registry.npm.t
分类:其他   时间:2016-02-06 01:40:47    收藏:0  评论:0  赞:0  阅读:156
【HDOJ】3686 Traffic Real Time Query System
这题做了几个小时,基本思路肯定是求两点路径中的割点数目,思路是tarjan缩点,然后以割点和连通块作为新节点见图。转化为lca求解。结合点——双连通分量与LCA。 1 /* 3686 */ 2 #include <iostream> 3 #include <sstream> 4 #include <
分类:其他   时间:2016-02-06 01:40:31    收藏:0  评论:0  赞:0  阅读:293
centos 1.7 安装nginx 1.9.10
可以参考以前安装成功的案例 centos 7.0 nginx 1.7.9成功安装过程 官网下载 http://nginx.org/en/download.html nginx下载位置 /usr/local/ nginx 安装目录 /usr/etc/nginx1910 nginx path prefi
分类:其他   时间:2016-02-06 01:39:18    收藏:0  评论:0  赞:0  阅读:560
集合练习——Map部分
练习: 输入诗的名称查询出诗的内容,当输入exit时,退出程序,“春晓”,“静夜思”,“鹅”。 package CollectionPart; public class Poetry { private String title; private String poet; private Strin
分类:其他   时间:2016-02-06 01:38:46    收藏:0  评论:0  赞:0  阅读:348
Mybatis typeAliases别名
<typeAliases> <typeAlias type="com.green.phonemanage.model.CellPhone" alias="CellPhone" /> <typeAlias type="com.green.phonemanage.model.Client" alias=
分类:其他   时间:2016-02-06 01:38:29    收藏:0  评论:0  赞:0  阅读:243
BZOJ2190 [SDOI2008]仪仗队(欧拉函数)
与HDU2841大同小异。 设左下角的点为(1,1),如果(1,1)->(x,y)和(1,1)->(x',y')向量平行,那只有在前面的能被看见。然后就是求x-1、y-1不互质的数对个数。 而x或y等于1可以另外讨论一下,就是当n不等于1时就有两个,n等于1就特判一下。 那么就用欧拉函数计数了:枚举
分类:其他   时间:2016-02-06 01:37:56    收藏:0  评论:0  赞:0  阅读:216
【C】位运算
可以演变出很多奇技淫巧的位运算,据传运行速度非常快
分类:其他   时间:2016-02-06 01:37:40    收藏:0  评论:0  赞:0  阅读:258
EChart 关于图标控件的简单实用
1.下载前段框架并放入项目中去. 2.在js中调用 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>ECharts</title> </head> <body> <!--Step:1 Prepare a do
分类:其他   时间:2016-02-06 01:37:32    收藏:0  评论:0  赞:0  阅读:186
Integer的学习
今天看了一篇文章是将Integer的进阶用法的,拿来一块学习下 Why YOU should use Integer.valueOf(int) In particular, why you should use Integer.valueOf(int) instead of new Integer(
分类:其他   时间:2016-02-06 01:37:24    收藏:0  评论:0  赞:0  阅读:304
poj 2079 Triangle(旋转卡壳)
Triangle Time Limit: 3000MS Memory Limit: 30000K Total Submissions: 8917 Accepted: 2650 Description Given n distinct points on a plane, your task is t
分类:其他   时间:2016-02-06 01:36:59    收藏:0  评论:0  赞:0  阅读:315
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!