码迷,mamicode.com
首页 >  
搜索关键字:super t    ( 6727个结果
10624 - Super Number
题目链接 题意:给出n到m的范围,求出一个数在前i位数组成的数字能被i整除,如果存在输出这个数,如果不存在,输出-1. 思路:回溯,每次放第i位,然后判断是否符合题意。这题踩着时间过去的2.6s(看了下别人的题解,可以减少取模次数来节省时间)。 代码: #include #include #include #include using namespace ...
分类:其他好文   时间:2014-08-18 22:05:53    阅读次数:303
Spring dao单元测试
public?class?JdbcDao?extends?JdbcDaoSupport? { ????@SuppressWarnings("rawtypes") ????public?List?getTables() ????{ ????????List?result?=?super.getJdbcTemplate().query...
分类:编程语言   时间:2014-08-18 20:39:23    阅读次数:246
UVA - 11752 The Super Powers
We all know the Super Powers ofthis world and how they manage to get advantages in political warfare or evenin other sectors. But this is not a political platform and so we will talkabout a different ...
分类:其他好文   时间:2014-08-18 18:42:02    阅读次数:191
zoj1232Adventure of Super Mario(图上dp)
题目连接: 啊哈哈,点我点我 思路: 这个题目是一个图上dp问题,先floyd预处理出图上所有点的最短路,但是在floyd的时候,把能够用神器的地方预处理出来,也就是转折点地方不能为城堡。。预处理完毕后,就是一个dp问题了。。。dp[][],两维分别表示到达的地点和使用神器的次数。。这样这个问题就得到了解决。。 题目: Adventure of Super Mario Ti...
分类:其他好文   时间:2014-08-18 12:35:34    阅读次数:250
Android解读CheckBox
打开源码中CheckBox.java文件,我们可以看到如下内容:publicclassCheckBoxextendsCompoundButton{ publicCheckBox(Contextcontext){ this(context,null); } publicCheckBox(Contextcontext,AttributeSetattrs){ this(context,attrs,com.android.internal.R.attr.checkboxStyl..
分类:移动开发   时间:2014-08-18 01:39:44    阅读次数:267
hdu 4848 Wow! Such Conquering!
Wow! Such Conquering! Problem Description There are n Doge Planets in the Doge Space. The conqueror of Doge Space is Super Doge, who is going to inspe...
分类:其他好文   时间:2014-08-18 01:32:53    阅读次数:235
Cannot assign to 'self' outside of a method in the init family
有时候我们重写父类的init方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super init];)时会报错,错误信息如下:error:Cannot assign to 'self' outside of a method in the in...
分类:其他好文   时间:2014-08-17 16:58:52    阅读次数:201
ZOJ 3212 K-Nice (K)
K-NiceTime Limit:1 Second Memory Limit:32768 KB Special JudgeThis is a super simple problem. The description is simple, the solution is simple. If you...
分类:其他好文   时间:2014-08-17 02:16:11    阅读次数:273
iOS开发- 隐藏状态栏(电池栏)
分为两种情况:1. 想要隐藏某个视图的状态栏, 比如说, 从界面A, push 到界面B的时候, 界面A原本显示状态栏, 然而我们需要界面B不显示状态栏。这时候, 可以这样做:在B中实现:- (void)viewDidLoad { [super viewDidLoad]; if ([self respondsToSelector:@selector(setNeedsSta...
分类:移动开发   时间:2014-08-16 17:09:40    阅读次数:220
多个Activity参数传递
Activity转到other Activity package cn.itcast.activitys; import android.app.Activity; public class MainActivity extends Activity {   super.onCreate(Bundle savedInstanceState);   setContentView(...
分类:其他好文   时间:2014-08-15 14:46:39    阅读次数:189
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!