#include using namespace std; #define SIZE 100 int map[SIZE][SIZE]; int queue[SIZE]; int color[SIZE]; int visit[SIZE]; int m,n; int tab; int ans; int ... ...
分类:
其他好文 时间:
2017-08-14 18:56:48
阅读次数:
154
A cookie is a small piece of data sent by a website to your browser. It helps the website to remember information about your visit, like your country ...
分类:
其他好文 时间:
2017-08-13 20:45:46
阅读次数:
125
Dumb Bones 题意:给定n,表示要放n个骨牌,每次放下骨牌,有可能向左倒的概率为pl,向右倒的概率为pr,如果倒下,会将那一侧的骨牌全部推倒,可以选择位置先后放骨牌,问说一种放骨牌次数最少的期望是多少。 ...
分类:
其他好文 时间:
2017-08-12 12:44:38
阅读次数:
171
The cows have run out of hay, a horrible event that must be remedied immediately. Bessie intends to visit the other farms to survey their hay situatio ...
分类:
其他好文 时间:
2017-08-11 23:49:20
阅读次数:
248
rabbitmq rabbitmq 消息队列解耦:一个程序间 把两个耦合度降低异步:天生解决耦合优点:解决排队问题 缺点:不能保证任务被及时的执行应用场景:去哪儿网 12306网站同步优点:保证任务及时执行缺点:不能解决排队问题,导致时间被浪费 大并发 Web Linux上 近几年使用的是nginx ...
分类:
编程语言 时间:
2017-08-10 15:36:58
阅读次数:
314
一. RabbitMQ队列 rabbitmq 消息队列 解耦:一个程序间 把两个耦合度降低 异步:天生解决耦合 优点:解决排队问题 缺点:不能保证任务被及时的执行 应用场景:去哪儿网 12306网站 同步 优点:保证任务及时执行 缺点:不能解决排队问题,导致时间被浪费 大并发 Web Linux上 ...
分类:
其他好文 时间:
2017-08-09 21:14:17
阅读次数:
181
选择器的分类 1.基本选择器 标签选择器:语法:标签选择器名{属性:属性值;} 例如:body{ }、 p{ }、div{ }、table{ }...... 类选择器:类选择器{属性:属性值;} 例如: .myclass{ }...... 引用语法<标签 class="选择器名"></标签> id选 ...
分类:
其他好文 时间:
2017-08-09 14:24:26
阅读次数:
143
#include using namespace std; int m; int limit; int data[2][20]; int visit[20]; int flag; int curp; void DFS(int step,int curp) { if(step==m) { flag=1... ...
分类:
其他好文 时间:
2017-08-08 17:51:37
阅读次数:
145
CSS中的注释语句:用/*注释语句*/ css 样式由选择符和声明组成,而声明又由属性和值组成,如下图所示: 从CSS 样式代码插入的形式来看基本可以分为以下3种:内联式、嵌入式和外部式三种 内联式 直接写在现有的html标签中 例:<p style="color:red;font-size:12p ...
分类:
其他好文 时间:
2017-08-08 15:18:10
阅读次数:
97
Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but ...
分类:
其他好文 时间:
2017-08-08 09:28:12
阅读次数:
189