题目大意:给你一个n(n<=3)n(n<=3),对于x[1],x[2]....x[n]∈Nx[1],x[2]....x[n]\in N,有约束条件满足x[1]?c[1]+x[2]?c[2]+.....+x[n]?c[n]=v(v<=106)x[1]*c[1]+x[2]*c[2]+.....+x[n]*c[n]=v(v<=10^6),f(x[1],x[2],...,x[n])=∑ni=1x[i]f(x...
分类:
其他好文 时间:
2015-05-19 14:49:53
阅读次数:
131
EditText继承关系:View-->TextView-->EditTextEditText的属性很多,这里介绍几个:android:hint="请输入数字!"//设置显示在空间上的提示信息android:numeric="integer"//设置只能输入整数,如果是小数则是:decimaland...
分类:
移动开发 时间:
2015-05-19 12:12:25
阅读次数:
168
Palindrome Number Some hints:Could negative integers be palindromes? (ie, -1)If you are thinking of converting the integer to string, note the restriction of using extra space.You could also try revers...
分类:
其他好文 时间:
2015-05-19 10:43:23
阅读次数:
122
题目:Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should...
分类:
其他好文 时间:
2015-05-19 10:10:54
阅读次数:
125
procedure TForm1.Button1Click(Sender: TObject);var I: Integer;begin for I := DBGridEh1.SelectedRows.Count - 1 downto 0 do begin DBGridEh1.DataSo...
分类:
其他好文 时间:
2015-05-18 20:31:32
阅读次数:
123
网址:https://leetcode.com/problems/integer-to-roman/
题意:
模拟题...自己去查罗马数字怎么转化的就ok.
代码:
https://github.com/LiLane/leetcode/blob/master/java/012-IntegertoRoman-201505181637.java
https://github.com/Li...
分类:
其他好文 时间:
2015-05-18 19:00:05
阅读次数:
123
Implementatoito convert a string to an integer.转换很简单,唯一的难点在于需要开率各种输入情况,例如空字符串,含有空格,字母等等。另外需在写的时候注意细节问题,完成后需要反复调试,整合。 1 public class Solution { 2 p...
分类:
其他好文 时间:
2015-05-18 18:38:57
阅读次数:
95
String to Integer (atoi)Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are th...
分类:
其他好文 时间:
2015-05-18 16:52:50
阅读次数:
125
http://poj.org/problem?id=3017
Description
Given an integer sequence { an } of length N, you are to cut the sequence into several parts every one of which is a consecutive subsequence of the ori...
分类:
其他好文 时间:
2015-05-18 16:52:11
阅读次数:
130
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:
移动开发 时间:
2015-05-18 16:31:56
阅读次数:
183