码迷,mamicode.com
首页 >  
搜索关键字:ref    ( 31755个结果
leetcode[2-]
2. Add Two Numbers 解题思路还是比较简单的,只是要注意向高位进位。 比较优的解法借鉴思路是将所有可能的情况放入while中,用或运算进行判断,进而少掉了很多冗余的写法。while(l1 || l2 || carry); ...
分类:其他好文   时间:2018-05-02 02:37:45    阅读次数:87
apache如何设置http自动跳转到https
https://www.cnblogs.com/niejunlei/p/5279677.html 如何设置http自动跳转到https? apache环境下,配置好https后,需要设置url重定向规则,使网站页面的http访问都自动转到https访问。 1、先打开url重定向支持 1)打开Apac ...
分类:Web程序   时间:2018-05-02 02:32:47    阅读次数:201
Websocket 请求与订阅示例
1. 访问地址 Pro 站行情请求地址为:wss://api.huobipro.com/ws HADAX 站行情请求地址为:wss://api.hadax.com/ws 2. 数据压缩 WebSocket API 返回的所有数据都进行了 GZIP 压缩,需要 client 在收到数据之后解压,推荐使 ...
分类:Web程序   时间:2018-05-01 23:55:30    阅读次数:2097
AC的故事大结局山寨版(下)(最大流)
福建工程学院第十二届ACM程序设计大赛真题 AC的故事大结局山寨版(下) TimeLimit:2000MS MemoryLimit:128MB TimeLimit:2000MS MemoryLimit:128MB 64-bit integer IO format:%lld 64-bit intege ...
分类:其他好文   时间:2018-05-01 23:51:16    阅读次数:243
cf965d Single-use Stones
"ref" cpp include include using namespace std; int a[100005], n, l, ans=0x3f3f3f3f; int main(){ cin n l; for(int i=1; i ...
分类:其他好文   时间:2018-05-01 23:44:38    阅读次数:197
cf965c Greedy Arkady
呸,大傻逼题,我更傻逼 "ref" cpp include using namespace std; typedef long long ll; ll n, k, m, d, ans; int main(){ cin n k m d; for(int i=1; i ...
分类:其他好文   时间:2018-05-01 23:39:32    阅读次数:148
cf965e Short Code
"ref" cpp include include include include include using namespace std; int n, tot, dfn[100005], s[100005][26], dep[100005], idx, siz[100005], ans; boo ...
分类:其他好文   时间:2018-05-01 23:33:54    阅读次数:130
uva-11021-全概率公式
https://vjudge.net/problem/UVA-11021 有n个球,每只的存活期都是1天,他死之后有pi的概率产生i个球(0<=i<n),一开始有k个球,问m天之后所有球都死完的概率(m天之前都死完也算m天之前的)。由于每个球的成长与死亡都是独立的所以我们可以分开讨论,设f(i)表示 ...
分类:其他好文   时间:2018-05-01 20:48:23    阅读次数:118
Spring Boot运行原理
概述 本文主要写了下Spring Boot运行原理,还有一个小例子。 Spring4.x提供了基于条件来配置Bean的能力,而Spring Boot的实现也是基于这一原理的。 Spring Boot关于自动配置的源码在spring-boot-autoconfigure-1.3.0.x.jar内。如果 ...
分类:编程语言   时间:2018-05-01 20:33:37    阅读次数:211
理解堆栈
已经有很多人表述对此的总结,这里仅给出链接 https://www.zhihu.com/question/19729973 http://blog.jobbole.com/75321/ https://baike.baidu.com/item/%E5%A0%86%E6%A0%88 ...
分类:其他好文   时间:2018-05-01 20:26:35    阅读次数:121
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!