码迷,mamicode.com
首页 >  
搜索关键字:second    ( 4896个结果
python 输入输出,注释的使用
用EidtPlus新建一个py文件.代码如下(不能用notepad)#-*- coding:cp936 -*- print 'hello, python' print 'first 1', 'second 2' print '100 + 200 =', 100+200 #用户输入 """ 用户输入 """ name = raw_input() print '输入的数据:', name name =...
分类:编程语言   时间:2015-04-26 01:20:27    阅读次数:139
LightOJ 1085 - All Possible Increasing Subsequences (离散化+树状数组+dp)
1085 - All Possible Increasing SubsequencesPDF (English)StatisticsForumTime Limit:3 second(s)Memory Limit:64 MBAn increasing subsequence from a sequen...
分类:编程语言   时间:2015-04-26 01:19:26    阅读次数:236
codeforces 501 B Misha and Changing Handles 【map】
题意:给出n个名字变化,问一个名字最后变成了什么名字先用map顺着做的,后来不对, 发现别人是将变化后的那个名字当成键值来做的,最后输出的时候先输出second,再输出first写一下样例就好理解了 1 #include 2 #include 3 #include 4 #include ...
分类:其他好文   时间:2015-04-25 15:05:35    阅读次数:213
第八周-运算符重载-Time类中的运算符重载
代码如下: #include using namespace std; class CTime { private: unsigned short int hour; //时 unsigned short int minute; //分 unsigned short int second; //秒 public: ...
分类:其他好文   时间:2015-04-25 10:47:23    阅读次数:155
js中闭包来实现bind函数的一段代码的分析
今天研究了一下bind函数,发现apply和call还可以有这样的妙用,顺便巩固复习了闭包。 1 var first_object = { 2 num: 42 3 }; 4 var second_object = { 5 num: 24 6 }; 7 function multiply(...
分类:Web程序   时间:2015-04-24 15:33:58    阅读次数:166
从链表的末端开始,删除第n个节点
Given a linked list, remove the?nth?node from the end of list and return its head. For example, ???Given?linked?list:?1->2->3->4->5,?and?n?=?2. ???After?removing?the?second?nod...
分类:其他好文   时间:2015-04-24 12:47:55    阅读次数:148
NS3实例分析(3)-- second.cc
这一小节我们来看看第三个例子,这个例子应用了一个P2P信道和一个实现CSMA的以太信道。 网络拓扑如下: // Default Network Topology // //       10.1.1.0 // n0 -------------- n1   n2   n3   n4 //    point-to-point  |    |    |    | //           ...
分类:其他好文   时间:2015-04-24 09:15:59    阅读次数:676
ZOJ 3332 Strange Country II
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3757 题面:   Strange Country II Time Limit: 1 Second      Memory Limit: 32768 KB      Special Judge You want to visit a st...
分类:其他好文   时间:2015-04-24 09:05:43    阅读次数:164
#if #elif #define typedef 使用时的注意事项
假设有如下代码需要兼容三个版本 这样无法完成任务的 无论 typedef enum{ FIRST, SECOND, THIRD, }; #define NUM THIRD #if (NUM == FIRST) #define VAR 1 #elif(NUM == SECOND) #define VAR 2 #elif(NUM == THIRD) #defi...
分类:其他好文   时间:2015-04-24 01:07:29    阅读次数:115
ZOJ 3328 WuXing
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3328 题面: Wu Xing Time Limit: 1 Second      Memory Limit: 32768 KB Introduction The Wu Xing, or the Five Movements...
分类:其他好文   时间:2015-04-23 09:44:58    阅读次数:138
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!