ListView自身带了单选、多选模式,可通过listview.setChoiceMode来设置:
listview.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);//开启多选模式
listview.setChoiceMode(ListView.CHOICE_MODE_SINGLE);//开启单选模式
listview.setChoiceMod...
分类:
其他好文 时间:
2014-11-01 21:50:49
阅读次数:
407
通道:http://acm.hdu.edu.cn/showproblem.php?pid=4474题意:给出n和m个数位,求一个数X,这个数是n的最小倍数且他的每一位都不含有m个数位中的任意一个。思路:反过来想,其实就是有非M的元素组成一个数,这个数是N的倍数。如果存在解,那么他的第一位便是非M组合...
分类:
其他好文 时间:
2014-11-01 21:49:52
阅读次数:
235
Time Limit: 1sec Memory Limit:32MBDescriptionJohn is moving to the penthouse of a tall sky-scraper. He packed all his stuff in boxes and drove them t....
分类:
其他好文 时间:
2014-11-01 20:26:35
阅读次数:
226
-!1. Greedy vs. DP:http://blog.csdn.net/yelbosh/article/details/7649717. Multiple choices or not:Greedy has only 1 optimal last choice; DP picks the ....
分类:
其他好文 时间:
2014-11-01 06:11:19
阅读次数:
217
Travel
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 4185
Accepted: 1758
Description
One traveler travels among cities. He has to pay for this while he c...
分类:
其他好文 时间:
2014-10-31 22:12:57
阅读次数:
137
1.关于Arrays记得binarySearch方法返回的int 类型的数值的含义。 If the array contains multiple elements with the specified value, there is no guarantee which one will be f...
分类:
编程语言 时间:
2014-10-31 18:45:03
阅读次数:
285
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '00'
object = 'ZOA_LOGNUM'
IMPORTING
number = lv_curno
EXCEPTIONS
interval_not_found = 1
number_range_not_i...
分类:
其他好文 时间:
2014-10-31 15:45:13
阅读次数:
266
Problem Description
Once upon a time, there is a little frog called Matt. One day, he came to a river.
The river could be considered as an axis.Matt is standing on the left bank now (at position...
分类:
其他好文 时间:
2014-10-30 21:03:53
阅读次数:
147
Find The Multiple
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 18527
Accepted: 7490
Special Judge
Description
Given a positive integer n, write a prog...
分类:
其他好文 时间:
2014-10-30 15:21:23
阅读次数:
245
题意:
给一个n和m个数字(一位数)
求最小的n的倍数不含有这m个数字,不存在输出-1
思路:
首先有可能这个数超long long 所以无法暴力解决
所以这题应该是一个bfs
为什么能用余数判重呢
对于当前的余数进到队列里,一定是这个余数对应数的最小值
接下来再怎么添加到满足条件的后续东西应该是一样的
所以就可以余数判重了,类似数位dp的记录方式
然后再加上一个路径记录就好了...
分类:
其他好文 时间:
2014-10-30 13:37:28
阅读次数:
174