码迷,mamicode.com
首页 >  
搜索关键字:seconds    ( 2523个结果
struct timeval 计时问题
linux编程中,如果用到计时,可以用struct timeval获取系统时间。struct timeval的函数原型如下: struct timeval { __kernel_time_t tv_sec; /* seconds */ __kernel_suseconds_t tv_usec; /*...
分类:其他好文   时间:2014-07-10 14:30:22    阅读次数:334
ZOJ3640-Help Me Escape
Help Me Escape Time Limit: 2 Seconds      Memory Limit: 32768 KB Background     If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto th...
分类:其他好文   时间:2014-07-05 11:05:59    阅读次数:220
ZOJ3380- Patchouli's Spell Cards(概率DP+计数)
Patchouli's Spell Cards Time Limit: 7 Seconds      Memory Limit: 65536 KB Patchouli Knowledge, the unmoving great library, is a magician who has settled down in the Scarlet Devil Mansion (紅魔館...
分类:其他好文   时间:2014-07-04 08:34:34    阅读次数:347
UVA 11090 - Going in Cycle!!
二分+SPFA找负环 11090 - Going in Cycle!! Time limit: 3.000 seconds #include #include #include #include #include using namespace std; const double INF=1000000000.; struc...
分类:其他好文   时间:2014-07-02 08:30:41    阅读次数:216
ZOJ2750_Idiomatic Phrases Game(最短路)
Idiomatic Phrases Game Time Limit: 2 Seconds      Memory Limit: 65536 KB Tom is playing a game called Idiomatic Phrases Game. An idiom consists of several Chinese characters and has a certain me...
分类:其他好文   时间:2014-07-02 08:11:52    阅读次数:167
zoj 3790 Consecutive Blocks(链表重点是思想)
Consecutive Blocks Time Limit: 2 Seconds      Memory Limit: 65536 KB There are N (1 ≤ N ≤ 105) colored blocks (numbered 1 to N from left to right) which are lined up in a row. And the i-th b...
分类:其他好文   时间:2014-07-01 06:51:52    阅读次数:218
Linux struct itimerval用法
先看一段代码 #include #include #include #include #include static int count = 0; void set_timer() { struct itimerval itv; itv.it_value.tv_sec = 3; //timer start after 3 seconds later itv.it...
分类:系统相关   时间:2014-06-30 10:31:41    阅读次数:365
linux 脚本测试网络速度
example: ./netspeed eth0   1 #!/bin/bash   2   3 INTERVAL="1"  # update interval in seconds   4   5 if [ -z "$1" ]; then   6 echo   7 echo usage: $0 [network-interface]   8 echo   9 echo ...
分类:系统相关   时间:2014-06-25 07:24:00    阅读次数:213
zoj 2112 Dynamic Rankings(主席树&动态第k大)
Dynamic Rankings Time Limit: 10 Seconds      Memory Limit: 32768 KB The Company Dynamic Rankings has developed a new kind of computer that is no longer satisfied with the query like to simply...
分类:其他好文   时间:2014-06-22 17:04:16    阅读次数:182
c c++面试题1
1. 用预处理指令#define 声明一个常数,用以表明1年中有多少秒(忽略闰年问题)#define SECONDS_PER_YEAR (60 * 60 * 24 * 365)UL我在这想看到几件事情:1). #define 语法的基本知识(例如:不能以分号结束,括号的使用,等等)2). 懂得预处理...
分类:编程语言   时间:2014-06-22 10:51:29    阅读次数:236
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!