码迷,mamicode.com
首页 >  
搜索关键字:seconds    ( 2523个结果
Django - 数据按年月日查找
views html Django中条件过滤:按时间筛选 参考链接 "Django中条件过滤:按时间筛选" ...
分类:其他好文   时间:2018-12-25 20:12:01    阅读次数:329
Leetcode 123.买卖股票的最佳时机III
买卖股票的最佳时机III 给定一个数组,它的第 i 个元素是一支给定的股票在第 i 天的价格。 设计一个算法来计算你所能获取的最大利润。你最多可以完成 两笔 交易。 注意: 你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。 示例 1: 输入: [3,3,5,0,0,3,1,4] 输出: ...
分类:其他好文   时间:2018-12-23 11:24:32    阅读次数:162
ZOJ1058 Currency Exchange【水题】
"Currency Exchange" Time Limit: 2 Seconds Memory Limit: 65536 KB When Issac Bernand Miller takes a trip to another country, say to France, he exchange ...
分类:其他好文   时间:2018-12-22 12:01:39    阅读次数:137
线程池的使用
1...线程池参数的配置 2...注入线程池 3...自定义线程工厂 4...自定义拒绝策略 5...自定义拒绝队列之外的任务队列(单例,安全) 6...自定线程池 7...注入线程池的工具类 8...封装cpu密集型的Task 9...封装IO密集型的阻塞,可相应中断的task:https://b ...
分类:编程语言   时间:2018-12-21 15:15:52    阅读次数:135
Codeforces Round #527
D1. Great Vova Wall (Version 1) time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D1. Grea ...
分类:其他好文   时间:2018-12-20 01:02:30    阅读次数:152
ArrayBlockingQueue源码解析(2)
此文已由作者赵计刚授权网易云社区发布。 欢迎访问网易云社区,了解更多网易技术产品运营经验。 3.3、public void put(E e) throws InterruptedException 原理: 在队尾插入一个元素,如果队列满了,一直阻塞,直到数组不满了或者线程被中断 在队尾插入一个元素, ...
分类:其他好文   时间:2018-12-19 10:57:44    阅读次数:147
canvas :原生javascript编写动态时钟
canvas :原生javascript编写动态时钟 此时针是以画布的中心为圆心; g.translate(width/2,width/2); 此函数是将画布的原点移到(width/2,width/2) 绘制表盘 function jiang(){ r = width/2 g.clearRect(0 ...
分类:编程语言   时间:2018-12-17 20:19:26    阅读次数:247
Avito Cool Challenge 2018 C. Colorful Bricks 【排列组合】
传送门:http://codeforces.com/contest/1081/problem/C C. Colorful Bricks time limit per test 2 seconds memory limit per test 256 megabytes input standard i ...
分类:其他好文   时间:2018-12-17 18:58:23    阅读次数:251
Django中的缓存(内存,文件,redis)
一、Django中的缓存的几种方法 1)单个视图缓存。时间测试 在5秒内访问的时间不变,该缓存到了内存里面 2)设置全局缓存 需要在settings添加中间件 配置缓存时间:CACHE_MIDDLEWARE_SECONDS=10 settings的示例 MIDDLEWARE_CLASSES = ( ...
分类:其他好文   时间:2018-12-17 02:22:45    阅读次数:408
Educational Codeforces Round 56 (Rated for Div. 2) D. Beautiful Graph 【规律 && DFS】
传送门:http://codeforces.com/contest/1093/problem/D D. Beautiful Graph time limit per test 2 seconds memory limit per test 256 megabytes input standard i ...
分类:其他好文   时间:2018-12-16 21:44:33    阅读次数:159
2523条   上一页 1 ... 54 55 56 57 58 ... 253 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!