码迷,mamicode.com
首页 >  
搜索关键字:names    ( 11603个结果
车厢调度
车厢调度 (train.cpp/c/pas) Description 有 一 个 火 车 站 , 铁 路 如 图 所 示 ,每辆火车从 A 驶入, 再从 B 方向驶出,同时它的车厢可以重新组合。假设 从 A 方向驶来的火车有 n 节(n<=1000) ,分别按照顺 序编号为 1,2,3,…,n。假定 ...
分类:其他好文   时间:2017-04-07 21:58:20    阅读次数:194
杜教筛 模板
转自: http://blog.leanote.com/post/totziens/%E8%8E%AB%E6%AF%94%E4%B9%8C%E6%96%AF%E5%8F%8D%E6%BC%94%E4%B8%8E%E6%9D%9C%E6%95%99%E7%AD%9B 1. 求$\sum\limits_ ...
分类:其他好文   时间:2017-04-07 21:17:14    阅读次数:280
Python学习笔记_Python基础二
列表、元祖: 创建列表 通过列表的下标访问列表中的元素,下标从0开始 列表切片取多个元素 列表追加 names.append("xxxx") 列表插入 names.insert(索引,"xxxx") 修改 names[index] = "xxxxx" 删除 del names[index] name ...
分类:编程语言   时间:2017-04-07 19:56:42    阅读次数:250
docker使用与nginx搭建
一. docker使用 1. docker ps 查看运行中的容器 2. docker images 查看docker镜像 3. docker rm id(容器id) 删除容器(容器id可以通过docker ps查看,容器必须停止后才能删除) 3.1 删除全部的容器 docker rm `docke ...
分类:其他好文   时间:2017-04-07 16:43:18    阅读次数:288
simplify the life
熟悉css/css3颜色属性 颜色属性无处不在。字体要用颜色,背景可以有颜色,粒子特效更是离不开颜色。本文参考了一些资料简单总结下以备日后查阅。 css中颜色的定义方式: 十六进制色 RGB & RGBA HSL & HSLA 颜色名 十六进制色 个人最喜欢的一种颜色表达方式。 十六进制颜色是这样规 ...
分类:其他好文   时间:2017-04-07 16:30:27    阅读次数:252
UVa 11889 最小公倍数
https://vjudge.net/problem/UVA-11889 题意: 输入两个整数A和C,求最小的整数B使得lcm(A,B)=C。 思路: 首先C是A的公倍数,如果C%A不为0肯定是无解的。 接下来先让B=C/A,求g=gcd(A,B),如果g不为1的话,那么A、B的最小公倍数就是A*B ...
分类:其他好文   时间:2017-04-07 14:43:17    阅读次数:161
堆结构与堆排序
#ifndef HEAP_H #define HEAP_H #include #include using namespace std; template class Heap { public: Heap(vector &_vec) : vec(_vec){} ~Heap(){ vec.~vect... ...
分类:编程语言   时间:2017-04-07 14:12:33    阅读次数:154
2017.4.6课后作业(第四章.简答题4)
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace lesson4.en ...
分类:其他好文   时间:2017-04-07 00:39:10    阅读次数:175
快速幂模板
1 #include 2 #include 3 #include 4 using namespace std; 5 int f(int x,int n) 6 { 7 int now=1; 8 while(n) 9 { 10 if(n&1) 11 { 12 now=now*x; 13 ... ...
分类:其他好文   时间:2017-04-06 22:46:30    阅读次数:136
Codeforces 482B Interesting Array(线段树)
题目链接 Interesting Array 区间更新。然后对于每一个约数重新求一遍区间的&值,不符合就跳出。 ...
分类:其他好文   时间:2017-04-06 21:00:38    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!