Description 一天,wm和zyf想比比谁比较正气,但正气这种东西无法量化难以比较,为此,他们想出了一个方法,两人各写一个数字,然后转化为二进制,谁的数字中二进制1多谁就比较正气!Input 输入包含多组数据,EOF结束。 每组数据包含两行,代表两个非负整数a,b(0#include ...
分类:
其他好文 时间:
2014-07-07 11:07:47
阅读次数:
222
//界面按钮的显示隐藏 界面input的锁定 function change(){ document.getElementById('first1').style.display="inline"; document.getElementById('first2').style.display="i...
分类:
Web程序 时间:
2014-07-07 08:39:34
阅读次数:
227
很早就遇到过这么个小问题,但由于其并未影响到实际作用和美观就没有正面解决它,现在,我们来试着解决它。写一个Button,有两种方式:其一,直接button标签;其二,input type=”button”。不管哪种方式,Button的宽度在IE6、7下总是不能完美,接下来我们演示一个普通的Butto...
分类:
其他好文 时间:
2014-07-07 08:00:12
阅读次数:
170
众所周知,在Firefox下input type=”button”的文字是不好居中的,原因在于Firefox自己比较二,弄了个私有属性,导致以下问题的出现:按钮左右本身有2px的间距(FF私有属性写了padding:0 2px所致);按钮文字居中是不行的(此时设置padding-bottom是没用的...
分类:
其他好文 时间:
2014-07-07 00:50:33
阅读次数:
256
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Clarification:What constitutes...
分类:
其他好文 时间:
2014-07-03 20:45:35
阅读次数:
201
In this problem you are to generate a triangular wave form according to a specified pair of Amplitude and Frequency.
Input and Output
The input begins with a single positive integer on a line by i...
分类:
其他好文 时间:
2014-07-03 17:15:14
阅读次数:
204
SPOJ Problem Set (classical)
694. Distinct Substrings
Problem code: DISUBSTR
Given a string, we need to find the total number of its distinct substrings.
Input
T- number of ...
分类:
其他好文 时间:
2014-07-03 16:32:42
阅读次数:
212
在IE10和之后的IE版本中,当在输入框和密码框中输入的时候,后面会自动出现X按钮和小眼睛,如下图所示:令人苦恼的是,这个效果只有IE才有,其它浏览器是没有这个功能的。为了统一,我们就需要去掉这个功能,做法也很简单,直接在CSS中添加如下语句即可:/* 去除IE输入框的X标记 */input[typ...
分类:
Web程序 时间:
2014-07-03 12:39:00
阅读次数:
256
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.int key[]={1000, 900, 500, 400, 100,90, 50, ...
分类:
其他好文 时间:
2014-07-03 12:06:47
阅读次数:
186
题意:题意:给你3个字符串s1,s2,s3;要求对三个字符串中的字符赋值(相同的字符串进行相同的数字替换),
替换后的三个数进行四则运算要满足左边等于右边,求有几种解法。
Sample Input
2
A A A
BCD BCD B
Sample Output
5
72
eg:ABBDE ABCCC BDBDE ;...
分类:
其他好文 时间:
2014-07-02 16:59:34
阅读次数:
242