Problem Description
Given a positive integer n, your task is to find a positive integer m, which is a multiple of n, and that m contains the least number of different digits when represented in decim...
分类:
其他好文 时间:
2014-07-30 14:46:03
阅读次数:
230
Description
Recently, researchers on Mars have discovered N powerful atoms. All of them are different. These atoms have some properties. When two of these atoms collide, one of them disappears and ...
分类:
其他好文 时间:
2014-07-30 12:24:13
阅读次数:
226
需要注意:如果字段为varchar类型,when后的条件要加上引号SELECT (CASE 'marital_status' WHEN 0 THEN '已婚' WHEN 1 THEN '未婚' ELSE 'WEIZHI' END) AS marital_status FROM tj_archive WHERE id='D1407280006'
用上面的语句,如果marital_status...
分类:
其他好文 时间:
2014-07-30 10:00:43
阅读次数:
189
Palindromes
A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when t...
分类:
其他好文 时间:
2014-07-29 21:57:12
阅读次数:
308
For a positive integer N , the digit-sum of N is defined as the sum of N itself and its digits.
When M is the digitsum of N , we call N a generator of M .
For example, the digit-sum of 245 is 256 (...
分类:
其他好文 时间:
2014-07-29 21:53:12
阅读次数:
284
Activity.finish():Call this when your activity is done and should be closed. 在你的activity动作完成的时候,或者Activity需要关闭的时候,调用此方法。 当你调用此方法的时候,系统只是将最上面的Acti...
分类:
其他好文 时间:
2014-07-29 21:12:32
阅读次数:
214
1. 设置代码自动提示window --> preference --> General --> keys --> 选择content assist默认的是ctrl+space,与系统的切换输入法冲突了,于是改成Alt+/,when下拉框选择In dialog and windows;并且勾选Inc...
分类:
系统相关 时间:
2014-07-29 20:50:12
阅读次数:
259
Description
The system of Martians' blood relations is confusing enough. Actually, Martians bud when they want and where they want. They gather together in different groups, so that a Martian can hav...
分类:
其他好文 时间:
2014-07-29 17:55:22
阅读次数:
196
This tutorials aims to teach you how to create an error handler for your programs to deal with the clean-up operation when something in the code goes ...
分类:
其他好文 时间:
2014-07-29 16:59:32
阅读次数:
349
在开发中我们会遇到多重ajax调用的情况,这时比较适宜用$.when方法,无需再为每次调用请求分别定义一个回调。使用实例:varserverData={};varget1=$.get(‘/1‘).done(function(result){serverData[‘1‘]=result;});varget2=$.get(‘/2‘).done(function(result){serverData[‘2‘]=re..
分类:
Web程序 时间:
2014-07-29 15:26:00
阅读次数:
264