码迷,mamicode.com
首页 >  
搜索关键字:can    ( 23056个结果
Perl 学习笔记-目标操作
1.在目录树中移动. 程序运行时会以当前工作目录作为相对路径的起点, 可以使用chdir操作符改变当前目录:chdir "/etc" or die "Can't chdir to /etc:$!"; #因为这是一个相对操作系统的调用, 所以错误信息会返回到 $! 中. 由Perl程序启动的所有进.....
分类:其他好文   时间:2015-06-22 17:46:26    阅读次数:123
UVA 11995 I Can Guess the Data Structure!
11995  I Can Guess the Data Structure! There is a bag-like data structure, supporting two operations: 1 x Throw an element x into the bag. 2 Take out an element from the bag. Given a sequence of ...
分类:其他好文   时间:2015-06-22 16:32:53    阅读次数:200
poj3311 Hie with the Pie
Description The Pizazz Pizzeria prides itself in delivering pizzas to its customers as fast as possible. Unfortunately, due to cutbacks, they can afford to hire only one driver to do the deliveries...
分类:其他好文   时间:2015-06-22 15:07:09    阅读次数:143
Define Functions: Keyword Arguments
Functions can also be called using keyword arguments of the form kwarg=value. For instance, the following function:def parrot(voltage, state='a stiff'...
分类:其他好文   时间:2015-06-22 14:53:31    阅读次数:107
leetCode(21):Binary Tree Right Side View
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For example: Given the following binary tree, 1...
分类:其他好文   时间:2015-06-22 11:13:01    阅读次数:127
Nmap 源码学习三 nmap_main主程序分析
主体程序位置在nmap.cc line:1640学习要点:程序在1650行,新建一个主机的单例对象,#ifndef NOLUA /* Only NSE scripts can add targets */ NewTargets *new_targets = NULL; /* Pre-Scan and Post-Scan script results datastructure */...
分类:其他好文   时间:2015-06-22 09:53:28    阅读次数:329
hdu 5272 Dylans loves numbers
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5272Dylans loves numbersDescriptionWho is Dylans?You can find his ID in UOJ and Codeforces.His another I...
分类:其他好文   时间:2015-06-21 20:59:05    阅读次数:139
Linked List Cycle
Description:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?Code: 1 bool hasCycle(ListNo.....
分类:其他好文   时间:2015-06-21 18:25:08    阅读次数:116
POJ 3083 Bfs+Dfs
注意求最短路的时候用Bfs。#include#includeusing namespace std;int w,h,ex,ey,sx,sy;int map[100][100],can[100][100];struct vid{ int x,y,step;}queue[5000];int za...
分类:其他好文   时间:2015-06-21 17:02:25    阅读次数:130
ubuntu 休眠之后网络间接失败 can not connect to network after suspend (wake up)
ubuntu for laptop系统在系统休眠后wakeup 之后,网络连接失败, 有线网络无法连接, 无线wifi无法连接, 只能重启后才能恢复, 此时可以采用以下方法处理:1. 在/etc/pm/sleep.d/目录下创建network-manager-resume.2. 贴上以下命令并保存....
分类:Web程序   时间:2015-06-21 11:46:52    阅读次数:274
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!