码迷,mamicode.com
首页 > 其他好文
02-2. 一元多项式求导 (PAT)
设计函数求一元多项式的导数。输入格式:以指数递降方式输入多项式非零项系数和指数(绝对值均为不超过1000的整数)。数字间以空格分隔。输出格式:以与输入相同的格式输出导数多项式非零项的系数和指数。数字间以空格分隔,但结尾不能有多余空格。注意“零多项式”的指数和系数都是0,但是表示为“0 0”。输入样例...
分类:其他好文   时间:2015-02-03 22:47:32    阅读次数:214
弟子和师傅
一弟子跟师傅学习乐器演奏,尽管学得很努力,但收效甚微。一天,弟子疑惑地问师傅,是不是自己还用功不够?师傅拿出一根笛子,问,如果把笛子的孔全堵上,还能吹响吗?弟子说,当然不能。师傅说,所有的乐器,都不是实心的,都或多或少地留有空隙,正是这些空隙,成就了乐器,创造了美妙的音乐和旋律。人也是如此,不必用所...
分类:其他好文   时间:2015-02-03 22:46:57    阅读次数:210
csipsimple 出现单通情况
今天在测试voip电话时,突然打不通了和windows端也不通,boss发怒了.经过排查,发现设置G729编码//设置G729编码 prefs.setCodecPriority("g729/8000/1", SipConfigManager.CODEC_NB, "240"); prefs.set.....
分类:其他好文   时间:2015-02-03 22:47:07    阅读次数:329
第一个自定义开发的Arcgis地图
Feature Layer - display results as an InfoWindow onHover Hover over a county in Bai...
分类:其他好文   时间:2015-02-03 22:48:28    阅读次数:206
安装zabbix
安装zabbix 1. 准备好lamp架构(安装好mysql,php) 2.在数据库中授权: MariaDB [(none)]> create database zabbix charset utf8; Query OK, 1 row affected (0.33 sec) MariaDB [(no...
分类:其他好文   时间:2015-02-03 22:47:18    阅读次数:310
hdu 1164 Eddy's research I
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 #define MAX 65535 9 int prime[MAX+5];10 bool vis[MAX+5];11....
分类:其他好文   时间:2015-02-03 22:45:59    阅读次数:197
const指针和指向const的指针
int *const p=&a;这是const指针,这种指针必须在定义时就给出它所指向的地址,否则会error:uninitialized const 'p'.const指针的指针本身是const类型,所以不能修改它所指向的地址,但可以修改它所指向的值。const int *p;这是指向const对...
分类:其他好文   时间:2015-02-03 22:46:30    阅读次数:275
不同频率下的pwm配置
200k //PWM1 PWMPERDL1=0xb3; PWMPERDH1= 0x00; PWMCCNTL1=0x6B; PWMCCNTH1= 0; PWMDBDY1=0x2B; //死区延时计时器 //PWM0 PWMPERDL0=p...
分类:其他好文   时间:2015-02-03 22:46:33    阅读次数:163
【KMP】Cyclic Nacklace
KMP算法next[]深入了解,做到这题才真正明白next[]的用法,希望后面的题目能理解的更深刻。Problem Description CC always becomes very depressed at the end of this month, he has checked his cr...
分类:其他好文   时间:2015-02-03 22:43:20    阅读次数:185
C获取一行输入的首个字符
【任务】:获取在键入回车之前输入的所有字符中的首个字符。 例如:控制端提示我输入字符后,我输入了zhao 4个字符后按下了回车,字符段回显我输入的第一个字符即'z'。 【代码】: #include int main(void){ char ch; pr...
分类:其他好文   时间:2015-02-03 22:43:13    阅读次数:173
02-1 Reversing Linked List (PAT)
Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6,...
分类:其他好文   时间:2015-02-03 22:44:12    阅读次数:236
Linked List Cycle II
https://oj.leetcode.com/problems/linked-list-cycle-ii/Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Fo...
分类:其他好文   时间:2015-02-03 22:42:02    阅读次数:173
Search Insert Position
Search Insert PositionGiven a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if ...
分类:其他好文   时间:2015-02-03 22:42:04    阅读次数:152
点赚接口(第二版)
1.查看是否有新消息 url:/get/message/status?user_id={user_id} method:get response:{ "code": "ok", "msg": "", "data": 0 //新消息数目}2.获取消息列表url:/get/mess...
分类:其他好文   时间:2015-02-03 22:43:34    阅读次数:145
github生成SSH公钥
ssh-keygen -t rsa -C "your_email@youremail.com"然后输入github上的密码Enter passphrase (empty for no passphrase): [Type a passphrase]Enter same passphrase agai...
分类:其他好文   时间:2015-02-03 22:43:34    阅读次数:119
Lou's Pseudo 3d Page
Lou's Pseudo 3d Page(C) 2013 Louis Gorenfeld, updated May 3, 2013NEW:Important details on the segmented road system and some additional linksNEW:An (o...
分类:其他好文   时间:2015-02-03 22:40:37    阅读次数:312
性能优化之 - 按需加载
按需加载是网站性能优化立竿见影的其中一项,按需加载可以了解为 当用户触发某个动作的时候,才主动去请求资源,这样带来的优化好处:减少了HTTP请求,节省宽带,让页面首屏的内容更快展现在用户的视线范围内,可见极大提高了用户体检。触发的动作有很多,如鼠标点击,拉动页面滚动条,鼠标经过等等。【一】 图片.....
分类:其他好文   时间:2015-02-03 22:42:40    阅读次数:151
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!