码迷,mamicode.com
首页 >  
搜索关键字:multiple    ( 2544个结果
Dealing with Multiple-Choice Form Fields(2)- Handling single checkboxes
这一节的内容跟上一节的内容很像,甚至比上一节的内容更简单,因为只有一个checkbox。跟上一节相同的地方是,如果你不选择,那么$_POST里面就不会有这个checkbox的任何信息,连key都没有,所以我们要手动创建。即:(terms是checkbox的name值) if(!isset($_...
分类:其他好文   时间:2014-11-04 16:30:45    阅读次数:207
Dealing with Multiple-Choice Form Fields(1)-Handling radio button groups
这一节的主要内容:1、创建一个radio input(这是HTML的内容,但是之前掌握的不熟练);2、把它加入到原来的值的体系当中,即:判断有没有选择gender,如果没有选择就设定:$_POST['gender'] = '';这个时候mail_process.php中的以下代码将中把'gender...
分类:其他好文   时间:2014-11-04 15:00:05    阅读次数:152
Poj2356Find a multiple鸽巢原理
一定存在连续的k个数,使得他们的和能被n整除。设a[i]为前缀和a[1]%n ,a[2]%n,...,a[n]%n的值的范围#include#include#include#include#includeusing namespace std;typedef long long LL;int m.....
分类:其他好文   时间:2014-11-04 09:10:18    阅读次数:141
LeetCode[Linked List]: Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is. ...
分类:其他好文   时间:2014-11-02 09:27:14    阅读次数:276
ListView 实现多选/单选
ListView自身带了单选、多选模式,可通过listview.setChoiceMode来设置: listview.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);//开启多选模式 listview.setChoiceMode(ListView.CHOICE_MODE_SINGLE);//开启单选模式 listview.setChoiceMod...
分类:其他好文   时间:2014-11-01 21:50:49    阅读次数:407
【暴力+BFS】HDU 4474 Yet Another Multiple Problem
通道:http://acm.hdu.edu.cn/showproblem.php?pid=4474题意:给出n和m个数位,求一个数X,这个数是n的最小倍数且他的每一位都不含有m个数位中的任意一个。思路:反过来想,其实就是有非M的元素组成一个数,这个数是N的倍数。如果存在解,那么他的第一位便是非M组合...
分类:其他好文   时间:2014-11-01 21:49:52    阅读次数:235
Algorithm & Design
-!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
java sundry tips
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
poj1426--Find The Multiple(广搜,智商题)
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
[bfs+余数判重+路径记录] hdu 4474 Yet Another Multiple Problem
题意: 给一个n和m个数字(一位数) 求最小的n的倍数不含有这m个数字,不存在输出-1 思路: 首先有可能这个数超long long 所以无法暴力解决 所以这题应该是一个bfs 为什么能用余数判重呢 对于当前的余数进到队列里,一定是这个余数对应数的最小值 接下来再怎么添加到满足条件的后续东西应该是一样的 所以就可以余数判重了,类似数位dp的记录方式 然后再加上一个路径记录就好了...
分类:其他好文   时间:2014-10-30 13:37:28    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!