首页 > 其他
Implement strStr()
O(n*m)的时间复杂度的算法好很容易实现, kmp的话O(n+m)的时间复杂度也行,但O(n*m)的时间复杂度的算法2ms就过了。。。int strStr(char *haystack, char *needle) { int index = -1,j; int lenhay = st...
分类:其他   时间:2015-03-10 21:25:14    收藏:0  评论:0  赞:0  阅读:207
SPOJ Problem 5699:The last digit re-visited
求a^b的最后一位,a有1000位,b是long long。#include#includelong long y;char x[1005];int n,i,s;int a[10];int l;int find(int s,long long r){ memset(a,0,sizeof(a))...
分类:其他   时间:2015-03-10 21:25:04    收藏:0  评论:0  赞:0  阅读:455
octave 入门 (1)
1) 修改提示字符串: PS1('>>') >>PS1('input:')input:1 + 22) 运算 >> 1+2ans = 3>> 1*2ans = 2>> 1 == 2ans = 0>> 1 != 2ans = 1>> 1 && 0ans = 0>> 1 || 0ans = 13) 输.....
分类:其他   时间:2015-03-10 21:24:14    收藏:0  评论:0  赞:0  阅读:391
POJ 1853 背包问题
CatTime Limit: 1500MSMemory Limit: 30000KTotal Submissions: 1580Accepted: 401Special JudgeDescriptionIn strong winds, sailboats tend to heel leeward (...
分类:其他   时间:2015-03-10 21:24:04    收藏:0  评论:0  赞:0  阅读:779
LessonClassExtension
//// main.m// 2-8 LessonClassExtension//// Created by lanouhn on 15/3/10.// Copyright (c) 2015年 lanouhn. All rights reserved.//#import #import "Pen.h"...
分类:其他   时间:2015-03-10 21:23:54    收藏:0  评论:0  赞:0  阅读:310
SDUT3143:Combinatorial mathematics(组合数学)
题意:传送门题目描述As you know, shadow95 is pretty good at maths, especially combinatorial mathematics. Now, he has made a problem for you. We call a subset wh...
分类:其他   时间:2015-03-10 21:23:44    收藏:0  评论:0  赞:0  阅读:389
浏览器启用GPU加速的方法
能启用GPU加速的几个CSS属性 translate3d translateZ rotate scale 解决可能的闪烁: -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; -ms-backface-visi...
分类:其他   时间:2015-03-10 21:22:34    收藏:0  评论:0  赞:0  阅读:466
20150310 块设备驱动程序
20150310 块设备驱动程序 2015-03-10 李海沿 接下来我们来实现块设备驱动程序。 一、块设备结构体 1. file_operations 结构体 和字符设备驱动中file_operations 结构体类似,块设备驱动中也有一个 block_device_operations 结构体,...
分类:其他   时间:2015-03-10 21:22:04    收藏:0  评论:0  赞:0  阅读:339
LessonBlock
//// main.m// 2-7 LessonBlock//// Created by lanouhn on 15/3/9.// Copyright (c) 2015年 lanouhn. All rights reserved.//#import #import "Student.h"#impor...
分类:其他   时间:2015-03-10 21:21:54    收藏:0  评论:0  赞:0  阅读:267
颜色的命名
项目中使用了SASS,一直觉得颜色的命名很乱,觉得有必要有一个工具告诉你对应的颜色应该叫什么名字。于是我写了一个小工具ColorNamer。
分类:其他   时间:2015-03-10 21:21:44    收藏:0  评论:0  赞:0  阅读:245
A1003. Emergency (25)
As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro...
分类:其他   时间:2015-03-10 21:21:24    收藏:0  评论:0  赞:0  阅读:379
基于文件的数据结构:关于MapFile
MapFile是已经排过序的SequenceFile,它有索引,所以可以按键查找1.MapFile的写操作MapFile的写操作类似于SequenceFile的写操作。新建一个MapFile.Writer实例,然后调用append()方法顺序写入文件内容。如果不按顺序写入,就抛出一个IOExcept...
分类:其他   时间:2015-03-10 21:21:04    收藏:0  评论:0  赞:0  阅读:572
SDUT1607:Number Sequence(矩阵快速幂)
题目:http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=1607题目描述A number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (...
分类:其他   时间:2015-03-10 21:19:04    收藏:0  评论:0  赞:0  阅读:256
【转】Deep Learning论文笔记之(四)CNN卷积神经网络推导和实现
原作者:zouxy09原文链接:http://blog.csdn.net/zouxy09/article/details/9993371Deep Learning论文笔记之(四)CNN卷积神经网络推导和实现zouxy09@qq.comhttp://blog.csdn.net/zouxy09自己平时看...
分类:其他   时间:2015-03-10 21:18:44    收藏:0  评论:0  赞:0  阅读:482
hdu1002
void add(char str1[N],char str2[N]){ int i,len1,len2; int number1[N]={0}; int number2[N]={0}; len1=strlen(str1); len2=strlen(str2); for(i=len1-1...
分类:其他   时间:2015-03-10 21:17:04    收藏:0  评论:0  赞:0  阅读:212
Plus One
https://leetcode.com/problems/plus-one/Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored suc...
分类:其他   时间:2015-03-10 21:16:24    收藏:0  评论:0  赞:0  阅读:228
SAP系统里有很多用来控制密码的参数
SAP系统里有很多用来控制密码的参数,例如:1.login/password_max_idle_initial这些参数可以用来控制比如初始密码多久没登录会过期2.login/password_max_idle_productiveproductive密码(就是管理员初始化以后用户自己改过的密码)多久...
分类:其他   时间:2015-03-10 21:16:14    收藏:0  评论:0  赞:0  阅读:408
【YZOJ 1060】分配工作
DescriptionZxc接到一个任务--拯救世界。好在他有N个粉丝,Zxc把世界分成N个部分,每个粉丝处理一个部分,最后他来收尾。已知每个粉丝处理每个部分所需的时间,求拯救世界的最短时间是多少。每个人同时开始,但是不能互相帮忙。也就是说每个粉丝只能处理一个部分,并且一定要处理一个。Input F...
分类:其他   时间:2015-03-10 21:16:04    收藏:0  评论:0  赞:0  阅读:293
hdu 1081 To The Max(dp+化二维为一维)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1081To The MaxTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Subm...
分类:其他   时间:2015-03-10 21:15:44    收藏:0  评论:0  赞:0  阅读:312
N-Queens
N-Queens问题:Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.思路: dfs + 回溯 常用模板我的代码:pub....
分类:其他   时间:2015-03-10 21:15:14    收藏:0  评论:0  赞:0  阅读:335
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!