码迷,mamicode.com
首页 >  
搜索关键字:room    ( 611个结果
oc45--多对象内存管理 优化
// // main.m // Set方法的内存管理 #import #import "Person.h" #import "Room.h" int main(int argc, const char * argv[]) { @autoreleasepool { // 1.创建两个对象 Person... ...
分类:其他好文   时间:2017-08-25 12:33:04    阅读次数:125
oc44--多对象内存管理
// Room.h #import @interface Room : NSObject @property int no;// 房间号 @end // Room.m #import "Room.h" @implementation Room - (void)dealloc { NSLog(@"%s... ...
分类:其他好文   时间:2017-08-23 18:17:23    阅读次数:151
新手···网上购物
1、add the items to shopping cart:cart是手推车; 2、place an order下订单,pay for it付款; 3、after sales services售后服务,pre sales services售前服务; 4、warranty period保修期;t ...
分类:其他好文   时间:2017-08-22 00:36:30    阅读次数:123
HDU 3625 Examining the Rooms
Problem Description A murder happened in the hotel. As the best detective in the town, you should examine all the N rooms of the hotel immediately. Ho ...
分类:其他好文   时间:2017-08-18 15:20:27    阅读次数:135
HDU 3625 Examining the Rooms:第一类stirling数
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3625 题意: 有n个房间,每个房间里放着一把钥匙,对应能开1到n号房间的门。 除了1号门,你可以踹开任意一扇门(不用钥匙),但你最多只能踹k次。 问你能将所有门打开的概率。 题解: · P(打开所有门) ...
分类:其他好文   时间:2017-08-17 20:08:19    阅读次数:165
基础贪心题 HDOJ 1007
FatMouse' Trade Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 80535 Accepted Submission(s): 278 ...
分类:其他好文   时间:2017-08-17 16:24:27    阅读次数:182
python面向对象之 封装(Day25)
封装: 隐藏对象的属性和实现细节,仅对外提供公共访问方式 好处:1.将变化隔离 2.便于使用 3.提高复用性 4.提高安全性 封装原则: 1.将不需要对外提供的内容隐藏起来 2.把属性都隐藏,提供公共方法对其访问 二.私有变量和私有方法 在Python中用双下划线开头的方式将属性隐藏起来(设置成私有 ...
分类:编程语言   时间:2017-08-15 16:03:56    阅读次数:172
Go语言学习(四)经常使用类型介绍
1.布尔类型 var v1 bool v1 = true; v2 := (1==2) // v2也会被推导为bool类型 2.整型 类 型 长度(字节) 值 范 围 int8 1 ? 128 ~ 127 uint8(即byte)1 0 ~ 255 int16 2 ? 32 768 ~ 32 767 ...
分类:编程语言   时间:2017-08-14 19:05:54    阅读次数:246
253 Meeting Rooms II
看到区间求重叠的部分 , 就想到对区间排序(start, end?), 然后用堆模拟遍历218 The Skyline Problem Like the previous one Meeting Room, still need to sort the intervals using a compa ...
分类:其他好文   时间:2017-08-13 20:13:03    阅读次数:163
Codeforces554B:Ohana Cleans Up
Ohana Matsumae is trying to clean a room, which is divided up into an n by n grid of squares. Each square is initially either clean or dirty. Ohana ca ...
分类:其他好文   时间:2017-08-11 23:12:22    阅读次数:251
611条   上一页 1 ... 25 26 27 28 29 ... 62 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!