码迷,mamicode.com
首页 >  
搜索关键字:time    ( 52982个结果
codeforces 385C Bear and Prime Numbers
题意:给你一个数列,和m个询问,求 数组种 l -r 中所有质数的的倍数的个数和。解题思路:变形筛法。注意细节解题代码: 1 // File Name: 385c.cpp 2 // Author: darkdream 3 // Created Time: 2015年03月07日 星期六 18时24分...
分类:其他好文   时间:2015-03-07 21:13:00    阅读次数:209
hdu5128 The E-pang Palace
The E-pang Palace Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 512000/512000 K (Java/Others) Total Submission(s): 1073    Accepted Submission(s): 766 Problem Description E-pang Pala...
分类:其他好文   时间:2015-03-07 18:43:23    阅读次数:198
四则运算
#include #include #include int main(void){ int i = 0; srand((unsigned)time(NULL)); while(i<30) { int a = rand()%100; int b = rand()%100; in...
分类:其他好文   时间:2015-03-07 18:38:37    阅读次数:103
[AngularJS] Taking control of your templates using $templateCache
Using $templateCache for quickly retrieval from the cache after first time used.$templateCache mainly can use two methods:get(id)put(id, "your html co...
分类:Web程序   时间:2015-03-07 18:34:32    阅读次数:171
clock_gettime计时
注意1.精确级别,纳秒级别原型long clock_gettime (clockid_t which_clock, struct timespec *tp);头文件time.hwhich_clock参数解释CLOCK_REALTIME:系统实时时间,随系统实时时间改变而改变,即从UTC1970-1-...
分类:其他好文   时间:2015-03-07 18:32:18    阅读次数:149
codeforces 126B Password
题意:给你一个字符串 ,问你既是它的前缀 ,又是它的后缀,且是在中间出线过的最长字串是什么解题思路:KMP变形,不熟悉next写出来还是有点困难解题代码: 1 // File Name: 126b.cpp 2 // Author: darkdream 3 // Created Time: 2015年...
分类:其他好文   时间:2015-03-07 18:31:21    阅读次数:371
随机的30道四则运算题(简单的c)
#include #include #include int main(void){ int i = 0; srand((unsigned)time(NULL)); //本地时间为种子 while(i<30) { int a = rand()%100; //产生随机...
分类:其他好文   时间:2015-03-07 18:30:59    阅读次数:130
编程:要求随机产生30到小学2年级的四则运算题
源代码:#include#include#includevoid main(){ int a,i,k,m; //定义几个变量 srand((unsigned)time(NULL)); //定义随机数 // char g[4]={'+',...
分类:其他好文   时间:2015-03-07 18:30:24    阅读次数:131
多线程网络连接
客户端用多线程接受来自多用户的请求,且永不退出。 ##服务器端## ``` #!/usr/bin/env python #-*- coding:utf-8 -*- import socket import threading, time s = socket.socket(socket.AF_INET, socket.SOCK_STR...
分类:编程语言   时间:2015-03-07 17:18:28    阅读次数:138
URAL 1585. Penguins (字符串)
1585. Penguins Time limit: 1.0 second Memory limit: 64 MB Programmer Denis has been dreaming of visiting Antarctica since his childhood. However, there are no regular flights to Antarctic...
分类:其他好文   时间:2015-03-07 17:16:10    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!