Black And WhiteTime Limit: 3000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:391164-bit integer IO format:%I64d Java class nam...
分类:
其他好文 时间:
2015-04-30 16:04:44
阅读次数:
142
1.结对伙伴:叶煜稳 博客:http://www.cnblogs.com/doubi2wy/四则运算核心计算代码:if(e.getSource()==B1){ String str=T1.getText(); num=Integer.parseInt(str); } for(int i=0...
分类:
其他好文 时间:
2015-04-30 15:56:32
阅读次数:
105
SQL Server 中截取字符串常用的函数: 1.LEFT ( character_expression , integer_expression ) 函数说明:LEFT ( '源字符串' , '要截取最左边的字符数' ) 返回从字符串左边开始指定个数的字符 select LEFT(...
分类:
数据库 时间:
2015-04-30 10:13:16
阅读次数:
137
Sub 常量()
Const pi = 3.1415926
End Sub
Sub 变量()
Dim a As Integer
a = 100
a = 200
End Sub
Sub 应用()
Const pi = 3.1415926 '常量
a = 200 '变量,可不用声明
Debug.Print pi * a '在立即窗口显示
End Sub 转载请注明作者与出处:ht...
分类:
编程语言 时间:
2015-04-30 08:58:34
阅读次数:
148
Determine whether an integer is a palindrome. Do this without extra space.类似于reverse integer。public class Solution { public boolean isPalindrome(...
分类:
其他好文 时间:
2015-04-30 07:36:35
阅读次数:
119
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:
其他好文 时间:
2015-04-30 07:35:03
阅读次数:
108
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321注意溢出,溢出返回0public class Solution { public int reverse(int x...
分类:
其他好文 时间:
2015-04-30 07:33:24
阅读次数:
99
网址:https://leetcode.com/problems/string-to-integer-atoi/
题意:
字符串转int数
分析:
经典题,主要需要注意输入中,允许先有空格,再来内容.
内容可能还不是整齐和规则的...
解法:
1.遍历空格
2.判断正负号
3.读数字
4.可能存在结尾号
代码:
https://github.com/LiLane/leetc...
分类:
其他好文 时间:
2015-04-30 01:06:40
阅读次数:
143
George is a cat, so he loves playing very much.Vitaly put n cards in a row in front of George. Each card has one integer written on it. All cards had distinct numbers written on them. Let’s number the...
分类:
编程语言 时间:
2015-04-29 21:54:23
阅读次数:
211
Rimi learned a new thing about integers, which is - any positive integer greater than 1 can be divided by its divisors. So, he is now playing with this property. He selects a number N. And he calls thi...
分类:
其他好文 时间:
2015-04-29 21:48:46
阅读次数:
120