1 public class Test{2 public static void main(String[] args){3 int num = _;4 if(num<0&&num==Math.abs(num)){5 Syst...
分类:
其他好文 时间:
2015-04-10 21:58:48
阅读次数:
151
Charm BraceletTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:362464-bit integer IO format:%lld Java class name:...
分类:
其他好文 时间:
2015-04-10 21:55:09
阅读次数:
131
Crazy SearchTime Limit: 5000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:138164-bit integer IO format:%I64d Java class name:M...
分类:
其他好文 时间:
2015-04-10 21:50:25
阅读次数:
142
有点意思~ 只要相应的处理好对于 4 和 9 这两种特殊情况就好了.其他都是简单的加法
好吧, 老老实实贴出我的解答, 好丑... 不够简洁.. 可以看皓神的解答...
Python:
"""
Programmer : EOF
Date : 2015.04.10
File : itr.py
E-mail : ja...
分类:
其他好文 时间:
2015-04-10 17:51:21
阅读次数:
118
Sub DB_Row() Dim i, j As Integer Dim row1, row2 As Integer row1 = 3 ' 对比第 3 行 row2 = 4 ' 和第 4 行 For i = 1 To 256 For...
分类:
编程语言 时间:
2015-04-10 13:18:30
阅读次数:
269
最近想刷一下LeetCode练习一下数据结构算法之类的,先从水题开始吧题目是这样的Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theH...
分类:
其他好文 时间:
2015-04-10 13:11:14
阅读次数:
117
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-10 11:16:03
阅读次数:
124
Problem DescriptionGiven a positive integer N, you should output the most right digit of N^N.InputThe input contains several test cases. The first lin...
分类:
Web程序 时间:
2015-04-09 23:45:07
阅读次数:
145
poj1201——差分约束,spfaIntervalsTime Limit:2000MSMemory Limit:65536KTotal Submissions:22553Accepted:8530DescriptionYou are given n closed, integer interval...
分类:
其他好文 时间:
2015-04-09 23:40:13
阅读次数:
181
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321题目很简单,先判断数字的正负,再按位倒置数字就可以了。不过要考虑int的上限。代码如下:class Solution {pub...
分类:
其他好文 时间:
2015-04-09 23:14:39
阅读次数:
110