码迷,mamicode.com
首页 >  
搜索关键字:input raw_input    ( 33491个结果
HLG 1807 噢啦 (欧拉函数)
链接: http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=1807 Description 上个星期,小胖子学会了欧拉函数,他得意的说:”在a和b之间有多少个与c互素的数字,这样的简单题用欧拉就哦啦!“ 可是这次三三又问小胖子,在a和b之间有多少个与c互素的数。 Input 第一行包括一个...
分类:其他好文   时间:2014-06-20 12:07:38    阅读次数:211
C语言学习_排序_插入排序
1.插入排序 #include #include #define M 100 int main(void) { int i, j, n; int a[M] = {0}; printf("input n:"); scanf("%d", &n); printf("input a:"); for(i = 1; i scanf("%d", &a[i]); ...
分类:编程语言   时间:2014-06-20 11:00:54    阅读次数:230
KendoUI系列:ComboBox
1、基本使用 1>、创建Input 效果预览: 设置初始化时选中项:var color = $("#color").data("kendoComboBox");color.select(1); // 设置初始化时选中项,索引从0开始。 获取当前选中项Value值:var color = ...
分类:其他好文   时间:2014-06-11 10:43:36    阅读次数:221
HLG 1564 螺旋矩阵 (趣味C语言)
链接: http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=1564 Description 对于给定的一个数n,要你打印n*n的螺旋矩阵。 比如n=3时,输出: 1 2 3 8 9 4 7 6 5 Input 多组测试数据,每个测试数据包含一个整数n(1 Outpu...
分类:编程语言   时间:2014-06-09 23:23:32    阅读次数:322
leetcode——Reverse Words in a String 旋转字符串中单词顺序(AC)
题目如下: Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". click to show clarification. Clarification: What co...
分类:其他好文   时间:2014-06-08 14:58:13    阅读次数:231
用jQuery解决弹出层的问题
在BS 项目中 经常需要用到这种弹出层。做这种弹出层一般都会遇到下面几个问题:0,弹出层必须定义在input的下边显示。1,点击input弹出div层。2,点击div层外面任何地方,关闭div层。3,ie6下,div层与下拉框的优先级问题。下面这个例子就是解决这些问题的,大家可以参考参考,有什么更好...
分类:Web程序   时间:2014-06-08 06:40:37    阅读次数:270
中文录入问题 转载自:http://blog.csdn.net/ichsonx/article/details/8625925
2.1中文录入问题默认安装的msysgit的shell环境中无法输入中文,为了能在shell界面输入中文,需要修改配置文件/etc/inputrc,增加或修改相关配置如下:#disable/enable 8bit inputset meta-flag onset input-meta onset o...
分类:Web程序   时间:2014-06-07 21:52:34    阅读次数:281
HDU 1251 统计难题
Problem Description Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀).   Input 输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Ignatius统计的单词,一个空行代表单词表的结束.第二部分是...
分类:其他好文   时间:2014-06-07 12:25:46    阅读次数:329
python实现的链表
python实现的链表,包括插入、查找、删除操作 #!/usr/bin/python class linknode(): def __init__(self,k,n=None): self.key=k; self.next=n; def createlist(): #创建链表 n=raw_input("enter the num of nodes"); n=int(...
分类:编程语言   时间:2014-06-07 12:23:46    阅读次数:204
leetcode——String to Integer (atoi) 字符串转换为整型数(AC)
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 the possible input ca...
分类:其他好文   时间:2014-06-07 12:21:30    阅读次数:284
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!