- 《最强大脑》现“换发型”魔咒!吴圣洁和王雯萱换了发型就被淘汰!
时尚生活大杂烩
上周的《最强大脑》山之队队内考核,吴圣洁爆冷淘汰,当时我爆哭!本来这节目妹纸就少,吴圣洁一路走来还那么优秀,成绩亮眼,我一直很粉她,希望她能参与脑王之争,没想到竟然淘汰了。然后我发现一个问题,之前吴圣洁成绩遥遥领先,好几轮都是以第一名的成绩晋级的她,都是披着头发,而这一次淘汰,她扎起了头发!在百强第四轮组队赛之前,王雯萱一路晋级,初始排名19,龟文骨迹排名第七,在第三轮的1V1迷走点线中,她成功击
- 2019年6月复盘和7月计划
易_333
2019年6月复盘个人成长:1、学习问题解决工作坊内容,整体全套问题解决部分的课程话术2、学习复盘课程,听课、听录音、备课3、学习小组运营指南内容,调整运营方法,采用组队赛跑的方式督促小组全员打卡4、看书2本,读书笔记2篇职业发展:1、参加山东中行柜员访学项目,学习百佳网点的优质服务2、参与后备干部培养计划的方案制定及讲标3、备课厅堂营销内容4、整理互联网获客之道课件运动娱乐:1、完成30km跑步
- 20210705组队赛 题解
cyl06
题解算法数据结构
20210705组队赛题解前言目前已施工完毕,欢迎阅读!本题解中略去大部分题意简述部分,如需了解题意请阅读原题面。A-最大的序列非本校OJ题目传送门题目分析想法111:我会暴力!枚举每个数是否取,然后计算和并对mmm取模,直接二进制为O(n2n)O(n2^n)O(n2n),如果写DFS边取边统计就是O(2n)O(2^n)O(2n),期望得分505050分。想法222:我会折半搜索!观察到n≤35n
- 矩阵连乘,爆米花桶,2023/9/23,组队赛
Landing_on_Mars
数论矩阵算法c++
Contest(nefu.edu.cn)Problem:CTimeLimit:1000msMemoryLimit:65535KDescriptionAlice和Bob想吃爆米花,可是他们没有爆米花桶,想叠一个n层的爆米花桶,但是他们不知道叠一个n层的桶需要多大的纸,他们来请教你。f[i]为叠一个i层的爆米花桶需要的纸的面积,叠一层时需要面积为a的纸,叠两层需要面积为b的纸,叠i层需要面积为f[i]
- 2020年周检视9月第二周
jackhot
9月第一周(9.6~9.12)一、健康生物钟,这周总体还是晚睡,不过早起依然很好。1.早睡早起:早上起得来,给小朋友冲奶粉。午休习惯成自然——“中午不睡,下午崩溃”。原因:每晚都会磨蹭晚睡,感觉现在又是晚睡型,没有之前天天跑步,十点多就犯困的节奏。下一步:遵循生物钟,一切如常。2.运动:本周跑步一次,7公里。一周跑量分析原因:换了新跑鞋,不习惯,跑完腿脚不舒服好几天,把组队赛都耽误了,真是辛辛苦苦
- 【ZJNU 组队赛四】D:Splitting the Field
禾硕。
传送门题意在二维平面上有n个点,初始时使用一个矩形将所有点都框起来;现在想用两个矩形将这些点框起来,询问用两个矩形框起来之后的面积相比于初始时一个大矩形面积减少了多少;题解因为要用两个矩形框住,那么思考一下就知道这两个矩形只能是左右两个或者是上下两个。①对于左右两个矩形的情况:就先将这些点按x值从小到大排序,若x值相同就按照y值从小到大排序;之后枚举以哪个点作为分为左右两部分的分界点,在这两边分别
- 20130831组队赛-(Kuala Lumpur Site) Asia Regional 2011
ACM_devil
组队赛AsiaRegional2011
A:SmoothVisualization就是一个转换吧,给你一个数字,按照题目给出的表达形式会形成一个不圆滑的锯齿,为了使得锯齿看起来更圆滑一点,那么对于相邻的两个数字,如果其差值大于1,那么在这两个数字之间插入其中间应该拥有的数字,这样就可以形成圆滑的锯齿,唉,WA了一次,是那个测试的时候加的一个换行符没有去掉,太粗心了.....#include#include#include#include
- 第二次组队赛补题Problem C. Concatenation**
zhengsir8866
补题**:ProblemC.Concatenation**Inputfile:concatenation.inOutputfile:concatenation.outTimelimit:2secondsMemorylimit:256megabytesFamousprogrammerGennadylikestocreatenewwords.Onewaytodoitistoconcatenateexi
- nyist---组队赛(五)
风儿--zsj
组队赛
不得不说还是这么菜,只做了一个题,而且还是打表出来的,最近发现自己越来越浮躁了,真心不想写解题报告了;比赛题目链接:hust.acm[nyist]A题:http://blog.csdn.net/lyhvoyage/article/details/24440127B题:http://paste.ubuntu.com/7326620/D题:http://paste.ubuntu.com/7322932
- nyist -- 组队赛(二)
风儿--zsj
组队赛
比赛链接:http://acm.nyist.net/JudgeOnline/problemset.php?cid=193题解报告:http://pan.baidu.com/s/1ntwPVkd代码:A题:http://blog.csdn.net/u014225783/article/details/23997925B题:http://paste.ubuntu.com/7268150/C题:http
- nyist --- 组队赛(四)
风儿--zsj
组队赛
本次已是第四次组队赛了,感觉状态不太好,队友之间配合的不是那么默契,A,B,C,G,F,H题都是比较水的题目,不过在做题的过程中总是让人感觉出乎意外,第一题即wa了一次,紧接着第二题wa了3次,英文水平还是太差啊,需恶补一下,就因为前两题的判断失误,导致F题这么水的题,都不敢轻易地写代码,比人家慢了很多,G题模拟题,不过队友也调试了半天,H题通过推几组数据,,就会发现规律,C题几何简单题,定点暴力
- nyist-组队赛(六)
风儿--zsj
组队赛
本次比赛是我们队出的题,自我感觉出题水平不咋地,虽说不是第一次出题,但也不超过三次所以出题水平不行,但还是要记录一下题目链接:http://acm.nyist.net/JudgeOnline/problemset.php?page=10nyoj-1005、1006、1007、1012、1015、1016、1018、1019题解1005:http://blog.csdn.net/u011026037
- nyist -- 组队赛(一)
风儿--zsj
组队赛
比赛链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=44219#overview这次比赛手残了,好像没有碰过电脑A题,F题比较水就不贴代码了B题:http://blog.csdn.net/nyist_zxp/article/details/23792171D题:http://blog.csdn.net/apcsgf/article/
- nyist---组队赛(三)
风儿--zsj
组队赛
本次比赛是浙江省赛的题,做了5道题感觉水平有点次啊,让我感到差距太大,自己需要学的知识好有很多比赛前10分钟我来晚了队友等着我读题,当我来的时候,当时别人已经把A题给A出来了,A题就是一个大水题,1分钟读题+2分钟代码;接着就是C题2分钟读题+n分钟思考+2分钟代码(n<20)也是一个水题,接着G题,模板题我的队友打的代码,不过比完赛之而后发现题有点坑好像每组3个数字2个符号,感觉被坑了;接着L题
- 7/30组队赛感受
AC_sskiller.
今天和队友(燕,杨)打了一把组队赛,这是我们参加的第二次组队赛。打第一次组队赛的时候还摸不清楚方法,然后通过一次组队赛的磨合,我感觉和队友的默契在逐渐增加,刚开始打组队赛,感觉很棒,和队友商讨解题思路的时候也是一种享受,当然,如果a了题目的话会让我的喜悦度更上一层楼,组队赛最重要的是配合,一个好的队伍可以达到1+1+1>3的效果,他们有明确的分工,有超强的思维,和不懈的拼搏精神。我希望我们的队伍能
- 跑跑卡丁车组队竞速赛得分制度问题
Jether
算法与数据结构
跑跑卡丁车组队竞速赛得分制度问题跑跑卡丁车组队赛胜利根据每个队每一位车手的得分。第一名10分,第二名8分……等等。这样,如果第一名是红队的,第二名第三名是蓝队的,其他的人都没完成,还是蓝队获胜。现在设计怎样的评分制度能使组队竞速赛无论得出什么样的结果,两队的总得分都不会相等??
- ZOJ 2965 Accurately Say "CocaCola"!
Cfreezhan
acm解题报告ZOJ简单题inputoutputintegereach测试
简单的打表找规律。原题链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2965题目来源:http://acm.hust.edu.cn:8080/judge/contest/view.action?cid=12857#problem/A密码:135724682012年9月15日组队赛AccuratelySay"CocaC
- upc组队赛1 闪闪发光 【优先队列】
weixin_33892359
数据结构与算法
闪闪发光题目描述一所位于云南昆明的中医药本科院校--云南中医学院。因为报考某专业的人数骤减,正面临着停招的危机。其中有九名少女想到一条妙计——成为偶像,只要她们成为偶像,学校的名气便会增加,而报考的人数亦会上升。就这样,九位个性鲜明的少女决定一起努力成为偶像。希望可以凭借偶像的名气增加生源来挽救自己所喜爱的专业,让自己的学校闪闪发光。她们为了成为偶像,第一步对于她们来说是减肥!这里有n个重物,第i
- bugku 流量分析WP(持续更新中)
pipixia233333
CTF杂项
最近要打组队赛可能我要负责awd的web/pwn防御其实web还能理解主要是流量分析还有代码审计一直想的是pwn怎么防御如果直接patch的话会不会被宕机呢。。。。所以看了bugku的流量分析准备试试。。flag被盗这个题直接分析就好了流量分析这个东西直接追踪tcp流就可以了中国菜刀这个题我一开始分析的时候还以为用菜刀直接连接就可以拿到flag可是发现网址打不开(或者是操作有误??)然后就去晚上搜
- upc组队赛5 Ingenious Lottery Tickets【排序】
weixin_33894640
IngeniousLotteryTickets题目描述YourfriendSuperstitiousStanleyisalwaysgettinghimselfintotrouble.Thistime,inhisSuperLottoPickandChooseplan,hewantstogetrichquickbychoosingtherightnumberstowinthelottery.Inthi
- 8-1-组队赛
weixin_30719711
链接:第三次组队赛//这一次是搜索全场.......哎~感觉BFS还行,但DFS不是很懂啊.............==A.AKnight'sJourney据说是很经典但也是很水的DFS题目~题意:在一个p*q的棋盘上,一个knight要环游棋盘,每个点只走一遍,要历遍所有的点,问是否可能,若不可以则输出impossible,反之输出坐标。注:在题目中要求按字典树输出,故要注意坐标点~按下图的序号
- 石油大学OJ组队赛11 C 三元排序
weixin_30563917
问题C:三元排序时间限制:1Sec内存限制:128MB提交:101解决:23[提交][状态][讨论版]题目描述一次交换操作是指将数列中的两个数位置对调。给出一个只有1、2、3三个元素的数列,你需要通过有限次交换使数列中的数从小到大排列。请求出最少需要的交换次数。输入第一行读入一个数N(N#include#include#include#include#include#include#include
- CUGBACM_Summer_Tranning 组队赛解题报告
潇洒走一回LW
组队赛解题报告:CUGBACM_Summer_Tranning6:组队赛第六场CUGBACM_Summer_Tranning5:组队赛第五场CUGBACM_Summer_Tranning4:组队赛第四场CUGBACM_Summer_Tranning3:组队赛第三场CUGBACM_Summer_Tranning2:组队赛第二场CUGBACM_Summer_Tranning1:组队赛第一场
- GDUT 第一次组队赛 Team up! Team up! Team up!(三,dp,dfs)
*Slime*
训练赛
这里水题就不写出来了,补一下当时比赛没能想出来的题目。题目提交网站:http://codeforces.com/group/NVaJtLaLjS/contest/241520ProblemA—limit2secondsMillionaireCongratulations!YouwereselectedtotakepartintheTVgameshowWhoWantstoBeaMillionaire
- 从省赛回来后补题
obsorb_knowledge
补题啦!!!
1、“卓见杯”第五届CCPC中国大学生程序设计竞赛河南省赛网络赛题解郑轻DDefendingPlanSupport(树形dp,贡献值转移,从从子树转移到根,从根转移到子树)需写博客。2、郑轻E题,二维滚动哈希(选补)3、AYIT606省赛集训第一周周三组队赛需要写博客的题B(爆搜或构造(虽然构造没有成功,但是有很多思想,值得我们去学))D区间dp,求dp[i][j]区间中的最小值所花费的最少体力,
- 组队赛三 dfs搜索
sega_handsome
dfs
先要牢记string的截取部分的函数。。。#include#includeusingnamespacestd;voidmain(){strings="ABAB";cout#include#include#include#include#include#include#include#include#include#include#include#definelllonglong#defineinf
- 组队赛3——网络流——K——escaping
通信男神杨丽斌
图论
题目大意:给定一个n*n的图,给定一些点中的人数,给定一个逃生时间,再给定一个有一定救援物资的房间分布图,一个房间的人移动到另一个房间需要一个单位的时间,求给定时间内最多能救多少人.考试的时候真不知道这是个网络流的问题,对于图论题还是不能准确的建模,能记住几个常用的模型也好啊T_T结果就和逼哥一起写模拟程序,对于每个人,选定他能跑到最远的那个救生舱,直到救生舱的救援物资为0。然后又是结构体又是排序
- HPU 组队赛 B题 【二进制枚举 || dfs】
Dreamers_Boy
二进制枚举DFS
时间限制1Second内存限制512Mb题目描述你有n个问题,你已经估计了第i个问题的难度为Ci,现在你想使用这些问题去构造一个问题集。比赛的问题集必须包含至少两个问题,而且比赛的总难度必须至少为l至多为r,此外最简单的问题和最难的问题之间的差异至少为x请您找出能够选择的问题集的数量。输入第一行有T组输入(1≤T≤10接下来一行输入n,l,r,x(1≤n≤10,1≤l≤r≤1e9,1≤x≤1e6)
- 清明组队赛集训总结
GoneWithTheWind_yin
代码细节处理有问题清明节三天一共打了六场组队赛,这六场组队赛让我对我自己有了一个更加明确的认识,前五场比赛一共写崩了六个题目,其中不乏有十分简单的题目,也因为很小的错误去浪费大量的时间去检查代码,例如因为我把一个题目当中的十六进制的算法写错了,打乱了我们全队的节奏,从而使这一场比赛以倒数第一的成绩草草了事。还因为我的一些小错误,导致应该1A的题目错了多次以后只能再让队友来写这个题目从而浪费了大量的
- 第三次组队赛 (DFS&BFS)
weixin_30919919
网站:CSUST8月1日先总结下,不得不说死的很惨,又是第三就不说了,一共7道题,AC了5道,但是有一个组三个人是做的个人赛,有两人AK了.......Orz,然后深搜还是大问题,宽搜倒是不急了。而且,其中还有一题是水过去的。唉,不说了,好好看。╮(╯▽╰)╭A骑士历遍问题:给出m,n,指大小为m*n的棋盘,问骑士是否能遍历整个棋盘,要求把路径打出来,(要按字典序)AKnight'sJourney
- 戴尔笔记本win8系统改装win7系统
sophia天雪
win7戴尔改装系统win8
戴尔win8 系统改装win7 系统详述
第一步:使用U盘制作虚拟光驱:
1)下载安装UltraISO:注册码可以在网上搜索。
2)启动UltraISO,点击“文件”—》“打开”按钮,打开已经准备好的ISO镜像文
- BeanUtils.copyProperties使用笔记
bylijinnan
java
BeanUtils.copyProperties VS PropertyUtils.copyProperties
两者最大的区别是:
BeanUtils.copyProperties会进行类型转换,而PropertyUtils.copyProperties不会。
既然进行了类型转换,那BeanUtils.copyProperties的速度比不上PropertyUtils.copyProp
- MyEclipse中文乱码问题
0624chenhong
MyEclipse
一、设置新建常见文件的默认编码格式,也就是文件保存的格式。
在不对MyEclipse进行设置的时候,默认保存文件的编码,一般跟简体中文操作系统(如windows2000,windowsXP)的编码一致,即GBK。
在简体中文系统下,ANSI 编码代表 GBK编码;在日文操作系统下,ANSI 编码代表 JIS 编码。
Window-->Preferences-->General -
- 发送邮件
不懂事的小屁孩
send email
import org.apache.commons.mail.EmailAttachment;
import org.apache.commons.mail.EmailException;
import org.apache.commons.mail.HtmlEmail;
import org.apache.commons.mail.MultiPartEmail;
- 动画合集
换个号韩国红果果
htmlcss
动画 指一种样式变为另一种样式 keyframes应当始终定义0 100 过程
1 transition 制作鼠标滑过图片时的放大效果
css
.wrap{
width: 340px;height: 340px;
position: absolute;
top: 30%;
left: 20%;
overflow: hidden;
bor
- 网络最常见的攻击方式竟然是SQL注入
蓝儿唯美
sql注入
NTT研究表明,尽管SQL注入(SQLi)型攻击记录详尽且为人熟知,但目前网络应用程序仍然是SQLi攻击的重灾区。
信息安全和风险管理公司NTTCom Security发布的《2015全球智能威胁风险报告》表明,目前黑客攻击网络应用程序方式中最流行的,要数SQLi攻击。报告对去年发生的60亿攻击 行为进行分析,指出SQLi攻击是最常见的网络应用程序攻击方式。全球网络应用程序攻击中,SQLi攻击占
- java笔记2
a-john
java
类的封装:
1,java中,对象就是一个封装体。封装是把对象的属性和服务结合成一个独立的的单位。并尽可能隐藏对象的内部细节(尤其是私有数据)
2,目的:使对象以外的部分不能随意存取对象的内部数据(如属性),从而使软件错误能够局部化,减少差错和排错的难度。
3,简单来说,“隐藏属性、方法或实现细节的过程”称为——封装。
4,封装的特性:
4.1设置
- [Andengine]Error:can't creat bitmap form path “gfx/xxx.xxx”
aijuans
学习Android遇到的错误
最开始遇到这个错误是很早以前了,以前也没注意,只当是一个不理解的bug,因为所有的texture,textureregion都没有问题,但是就是提示错误。
昨天和美工要图片,本来是要背景透明的png格式,可是她却给了我一个jpg的。说明了之后她说没法改,因为没有png这个保存选项。
我就看了一下,和她要了psd的文件,还好我有一点
- 自己写的一个繁体到简体的转换程序
asialee
java转换繁体filter简体
今天调研一个任务,基于java的filter实现繁体到简体的转换,于是写了一个demo,给各位博友奉上,欢迎批评指正。
实现的思路是重载request的调取参数的几个方法,然后做下转换。
- android意图和意图监听器技术
百合不是茶
android显示意图隐式意图意图监听器
Intent是在activity之间传递数据;Intent的传递分为显示传递和隐式传递
显式意图:调用Intent.setComponent() 或 Intent.setClassName() 或 Intent.setClass()方法明确指定了组件名的Intent为显式意图,显式意图明确指定了Intent应该传递给哪个组件。
隐式意图;不指明调用的名称,根据设
- spring3中新增的@value注解
bijian1013
javaspring@Value
在spring 3.0中,可以通过使用@value,对一些如xxx.properties文件中的文件,进行键值对的注入,例子如下:
1.首先在applicationContext.xml中加入:
<beans xmlns="http://www.springframework.
- Jboss启用CXF日志
sunjing
logjbossCXF
1. 在standalone.xml配置文件中添加system-properties:
<system-properties> <property name="org.apache.cxf.logging.enabled" value=&
- 【Hadoop三】Centos7_x86_64部署Hadoop集群之编译Hadoop源代码
bit1129
centos
编译必需的软件
Firebugs3.0.0
Maven3.2.3
Ant
JDK1.7.0_67
protobuf-2.5.0
Hadoop 2.5.2源码包
Firebugs3.0.0
http://sourceforge.jp/projects/sfnet_findbug
- struts2验证框架的使用和扩展
白糖_
框架xmlbeanstruts正则表达式
struts2能够对前台提交的表单数据进行输入有效性校验,通常有两种方式:
1、在Action类中通过validatexx方法验证,这种方式很简单,在此不再赘述;
2、通过编写xx-validation.xml文件执行表单验证,当用户提交表单请求后,struts会优先执行xml文件,如果校验不通过是不会让请求访问指定action的。
本文介绍一下struts2通过xml文件进行校验的方法并说
- 记录-感悟
braveCS
感悟
再翻翻以前写的感悟,有时会发现自己很幼稚,也会让自己找回初心。
2015-1-11 1. 能在工作之余学习感兴趣的东西已经很幸福了;
2. 要改变自己,不能这样一直在原来区域,要突破安全区舒适区,才能提高自己,往好的方面发展;
3. 多反省多思考;要会用工具,而不是变成工具的奴隶;
4. 一天内集中一个定长时间段看最新资讯和偏流式博
- 编程之美-数组中最长递增子序列
bylijinnan
编程之美
import java.util.Arrays;
import java.util.Random;
public class LongestAccendingSubSequence {
/**
* 编程之美 数组中最长递增子序列
* 书上的解法容易理解
* 另一方法书上没有提到的是,可以将数组排序(由小到大)得到新的数组,
* 然后求排序后的数组与原数
- 读书笔记5
chengxuyuancsdn
重复提交struts2的token验证
1、重复提交
2、struts2的token验证
3、用response返回xml时的注意
1、重复提交
(1)应用场景
(1-1)点击提交按钮两次。
(1-2)使用浏览器后退按钮重复之前的操作,导致重复提交表单。
(1-3)刷新页面
(1-4)使用浏览器历史记录重复提交表单。
(1-5)浏览器重复的 HTTP 请求。
(2)解决方法
(2-1)禁掉提交按钮
(2-2)
- [时空与探索]全球联合进行第二次费城实验的可能性
comsci
二次世界大战前后,由爱因斯坦参加的一次在海军舰艇上进行的物理学实验 -费城实验
至今给我们大家留下很多迷团.....
关于费城实验的详细过程,大家可以在网络上搜索一下,我这里就不详细描述了
在这里,我的意思是,现在
- easy connect 之 ORA-12154: TNS: 无法解析指定的连接标识符
daizj
oracleORA-12154
用easy connect连接出现“tns无法解析指定的连接标示符”的错误,如下:
C:\Users\Administrator>sqlplus username/
[email protected]:1521/orcl
SQL*Plus: Release 10.2.0.1.0 – Production on 星期一 5月 21 18:16:20 2012
Copyright (c) 198
- 简单排序:归并排序
dieslrae
归并排序
public void mergeSort(int[] array){
int temp = array.length/2;
if(temp == 0){
return;
}
int[] a = new int[temp];
int
- C语言中字符串的\0和空格
dcj3sjt126com
c
\0 为字符串结束符,比如说:
abcd (空格)cdefg;
存入数组时,空格作为一个字符占有一个字节的空间,我们
- 解决Composer国内速度慢的办法
dcj3sjt126com
Composer
用法:
有两种方式启用本镜像服务:
1 将以下配置信息添加到 Composer 的配置文件 config.json 中(系统全局配置)。见“例1”
2 将以下配置信息添加到你的项目的 composer.json 文件中(针对单个项目配置)。见“例2”
为了避免安装包的时候都要执行两次查询,切记要添加禁用 packagist 的设置,如下 1 2 3 4 5
- 高效可伸缩的结果缓存
shuizhaosi888
高效可伸缩的结果缓存
/**
* 要执行的算法,返回结果v
*/
public interface Computable<A, V> {
public V comput(final A arg);
}
/**
* 用于缓存数据
*/
public class Memoizer<A, V> implements Computable<A,
- 三点定位的算法
haoningabc
c算法
三点定位,
已知a,b,c三个顶点的x,y坐标
和三个点都z坐标的距离,la,lb,lc
求z点的坐标
原理就是围绕a,b,c 三个点画圆,三个圆焦点的部分就是所求
但是,由于三个点的距离可能不准,不一定会有结果,
所以是三个圆环的焦点,环的宽度开始为0,没有取到则加1
运行
gcc -lm test.c
test.c代码如下
#include "stdi
- epoll使用详解
jimmee
clinux服务端编程epoll
epoll - I/O event notification facility在linux的网络编程中,很长的时间都在使用select来做事件触发。在linux新的内核中,有了一种替换它的机制,就是epoll。相比于select,epoll最大的好处在于它不会随着监听fd数目的增长而降低效率。因为在内核中的select实现中,它是采用轮询来处理的,轮询的fd数目越多,自然耗时越多。并且,在linu
- Hibernate对Enum的映射的基本使用方法
linzx0212
enumHibernate
枚举
/**
* 性别枚举
*/
public enum Gender {
MALE(0), FEMALE(1), OTHER(2);
private Gender(int i) {
this.i = i;
}
private int i;
public int getI
- 第10章 高级事件(下)
onestopweb
事件
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
- 孙子兵法
roadrunners
孙子兵法
始计第一
孙子曰:
兵者,国之大事,死生之地,存亡之道,不可不察也。
故经之以五事,校之以计,而索其情:一曰道,二曰天,三曰地,四曰将,五
曰法。道者,令民于上同意,可与之死,可与之生,而不危也;天者,阴阳、寒暑
、时制也;地者,远近、险易、广狭、死生也;将者,智、信、仁、勇、严也;法
者,曲制、官道、主用也。凡此五者,将莫不闻,知之者胜,不知之者不胜。故校
之以计,而索其情,曰
- MySQL双向复制
tomcat_oracle
mysql
本文包括:
主机配置
从机配置
建立主-从复制
建立双向复制
背景
按照以下简单的步骤:
参考一下:
在机器A配置主机(192.168.1.30)
在机器B配置从机(192.168.1.29)
我们可以使用下面的步骤来实现这一点
步骤1:机器A设置主机
在主机中打开配置文件 ,
- zoj 3822 Domination(dp)
阿尔萨斯
Mina
题目链接:zoj 3822 Domination
题目大意:给定一个N∗M的棋盘,每次任选一个位置放置一枚棋子,直到每行每列上都至少有一枚棋子,问放置棋子个数的期望。
解题思路:大白书上概率那一张有一道类似的题目,但是因为时间比较久了,还是稍微想了一下。dp[i][j][k]表示i行j列上均有至少一枚棋子,并且消耗k步的概率(k≤i∗j),因为放置在i+1~n上等价与放在i+1行上,同理