摘要:
Snowflake Snow SnowflakesTime Limit:4000MSMemory Limit:65536KTotal Submissions:20831Accepted:5445DescriptionYou may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this is really true. Your program will read information about a collection of snowflak 阅读全文
阅读排行榜
poj 3009 Curling 2.0-----搜索
2012-07-15 10:51 by java环境变量, 307 阅读, 收藏,
摘要:
Curling 2.0Time Limit:1000MSMemory Limit:65536KTotal Submissions:6807Accepted:2841DescriptionOn Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat different from ours. The game is played on an ice game board on which a square mesh is marked. The 阅读全文
objective-C 自动释放池(autorelease pool)
2012-08-13 17:00 by java环境变量, 306 阅读, 收藏,
摘要:
如果一个对象的生命周期显而易见,很容易就知道什么时候该new一个对象,什么时候不再需要使用,这种情况下,直接用手动的retain和release来判定其生死足矣。但是有些时候,想知道某个对象在什么时候不再使用并不那么容易。如果下面的代码,看上去非常简单:Sample.h类接口部分#import < Foundation / Foundation.h >
@interface Sample : NSObject {
}
-(NSString*) toString;
@endSample.m 类实现部分#import "Sample.h"
@implementati 阅读全文
sqlserver 发布后,手动清除相关proc
2012-07-02 14:27 by java环境变量, 306 阅读, 收藏,
摘要:
--删除数据库发布后,发现还有很多相关的proc存在, 手动清除下!SELECT 'drop proc dbo.'+name FROM sys.proceduresWHERE name LIKE 'sp_MSupd_%' UNION ALLSELECT 'drop proc dbo.'+name FROM sys.proceduresWHERE name LIKE 'sp_MSdel_%'UNION ALLSELECT 'drop proc dbo.'+name FROM sys.proceduresWHERE n 阅读全文
oracle 禁止操作系统认证登录
2012-05-18 15:58 by java环境变量, 305 阅读, 收藏,
摘要:
1.以操作系统认证方式登录数据库的方法1)最基本的方法就是使用“sqlplus / as sysdba”登录数据库sqlplus / as sysdba斜杠“/”左面是用户名,右面是密码,这里表示不给出用户名和密码一样可以登录到数据库系统中2)使用正确的用户名和密码登陆数据库sqlplus sys/password as sysdba显然,登录完全没有问题。3)使用错误的用户名和密码登陆数据库sqlplus wind/wind as sysdba这种操作系统认证方式登录数据库,即使使用的是错误的用户名和密码依然可以顺利的登录到数据库中.2.禁用操作系统认证方式登录数据库编辑ORACLE_HOM 阅读全文
浙公网安备 33010602011771号