码迷,mamicode.com
首页 >  
搜索关键字:door    ( 157个结果
《转》面向对象类设计原则
面向对象类的设计原则 1 SRP(单一职责原则) 这个原则看起来很简单,就是说一个类只能承担一个职责。 但这里有一个关键:“职责”是如何理解的? 按照汉语的理解,职责其实分为两部分:“职”和“责”。“职”就是这个类是什么,而“责”就是这个类要干什么。 举个例子来说:Door是一个对象,那么它的“职” ...
分类:其他好文   时间:2017-06-07 21:03:06    阅读次数:170
zoj 3640 Help Me Escape
Background If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto thee shall be his desire, and t ...
分类:其他好文   时间:2017-06-02 22:04:05    阅读次数:205
1006. Sign In and Sign Out (25)(技巧性模拟)
At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door ...
分类:其他好文   时间:2017-05-06 00:49:31    阅读次数:324
hzau 1208 Color Circle(dfs)
1208: Color Circle Description There are colorful flowers in the parterre in front of the door of college and form many beautiful patterns. Now, you w ...
分类:其他好文   时间:2017-04-30 23:07:40    阅读次数:255
CSU 1556 Jerry's trouble
题目链接:http://acm.csu.edu.cn/csuoj/problemset/problem?pid=1556 Description Jerry is caught by Tom. He was penned up in one room with a door, which only ...
分类:其他好文   时间:2017-04-21 19:59:07    阅读次数:167
python 类__init__函数
from collections import namedtuple#nametuple使用的目的组织数据,调用Pet.name#nametuple字段有名字,元组的字段只有索引Pet=namedtuple('pet',['name','age'])Door=namedtuple('Door',[' ...
分类:编程语言   时间:2017-04-13 16:34:29    阅读次数:200
接口中包含抽象类demo
package jiechoudemo; /* * 接口中包含抽象类 */ public class jiechoudemo { public static void main(String[] args) { windows.door wd = new zhuozi().new yizi(); w... ...
分类:其他好文   时间:2017-03-16 23:52:33    阅读次数:253
Codeforces 629 E. Famil Door and Roads
题目链接:http://codeforces.com/problemset/problem/629/E 询问这个简单环的期望。考虑将这个环拆成两部分。 令${deep[x]>=deep[y]}$,${size[x]}$表示以$x$为根的子树大小,${sdown[x]}$示以$x$为根的子树的所有节点 ...
分类:其他好文   时间:2017-03-15 12:32:07    阅读次数:216
Codeforces Round #400 D. The Door Problem(2-sat)
题目链接:Codeforces Round #400 D. The Door Problem 题意: 有n扇门,每扇门有个初始状态,并且受两个开关控制。 现在给你m个开关控制门的信息,每个开关能将它所控制的门的状态翻转。 问能不能通过一定操作,将所以的门的状态都处于开的情况。 题解: 这题用2sat ...
分类:其他好文   时间:2017-02-25 17:19:28    阅读次数:250
Codeforces 776D:The Door Problem(DFS染色)
http://codeforces.com/problemset/problem/776/D 题意:有n个门,m个开关,每个门有一个当前的状态(0表示关闭,1表示打开),每个开关控制k个门,但是每个门确切的受两个开关控制,如果一个开关打开,那么原来关闭的门会打开,打开的门关闭,问是否存在一个情况使得 ...
分类:其他好文   时间:2017-02-25 11:49:37    阅读次数:527
157条   上一页 1 ... 5 6 7 8 9 ... 16 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!