摘要:
这题搞了很久很久。。弄得我都不想放上来了,但是想了想还是写上来吧,万一以后忘了怎么做了,又得搞很久很久了。题目是要求把一个字符串变成另外一个,每次可以选择一段字符串变成同一个字符,问最少用变多少次。本来想的更复杂,写了半天一直wa,后来发现自己想错了,,一不小心看到了kuangbin大牛说可以先由空串转化成b串。然后我想了一下,发现的确可以这样,这样就可以在由空串转化成b串的基础上判断a串与b串的区别,然后就可以得到由a串转化成b串的ans了。但是由空串转化成b串的时候假如b串是:acbdaefgha时,我求错了,调了很久才发现时这个串时是错的,于是改了一次啊就ac了。。。汗啊。。。硬着脸皮. 阅读全文
posted @ 2013-08-22 19:08
Class Xman
阅读(273)
评论(0)
推荐(0)
摘要:
备份裸设备上的数据文件1.Using dd is the fastest method to accomplis h this. However, it isnecessary to know how many blocks to skip in the raw device (e.g.,on Tru64 UNI X you must skip 64 KB ) so that y ou do not overwriteinform ation necessary for the operating system. The information onhow many blocks to ski 阅读全文
posted @ 2013-08-22 19:06
Class Xman
阅读(190)
评论(0)
推荐(0)
摘要:
1 nand scrub这个命令会擦除坏块信息,将坏块标识成好的,但此时这个坏块有潜在有危险,在特定条件下仍会造成数据的丢失,所以应该谨慎使用.Run U-boot and then use the following commands to clean the NAND device.Run the command nand bad to generate a list of the blocks on the device that the driver believes to be bad. Keep a copy of this list—it will be used later t 阅读全文
posted @ 2013-08-22 19:04
Class Xman
阅读(423)
评论(0)
推荐(0)
摘要:
题目:http://acm.timus.ru/problem.aspx?space=1&num=1132题意:就是给出方程,p为素数,求在区间内的解。这个思路很简单,详见:http://algo.ftiasch.com/tag/number-theory/一开始TLE,原因是我用了二分加法,以后记住:二分加法是适合很大数的,比较小的数就直接乘,不然数据多了可能TLE。#include #include #include #include #include #include using namespace std;typedef long long LL;LL quick_mod(LL 阅读全文
posted @ 2013-08-22 19:01
Class Xman
阅读(470)
评论(0)
推荐(0)
摘要:
最近手头上需要批量上传一些保存到SD卡图片由于简单,过于忘记,写在博客中吧!同时也希望能帮到大家!一 、 以下是一个Service类package cn.com.service;import java.io.File; import java.util.ArrayList; import java.util.List;import org.apache.commons.httpclient.methods.PostMethod; import org.apache.commons.httpclient.methods.multipart.FilePart; import org.apache. 阅读全文
posted @ 2013-08-22 18:59
Class Xman
阅读(326)
评论(0)
推荐(0)
摘要:
合并日志: --- Merging r173674 through r175986 into '.': C src/test/java/com/test/rigel/sandbox/organization/service/HeartBeatServiceTest.javaU src/test/java/com/test/rigel/sandbox/core/auth/OrgAuthServiceTest.javaU src/main/java/com/test/rigel/sandbox/core/auth/service/OrgAuthService.javaU s... 阅读全文
posted @ 2013-08-22 18:57
Class Xman
阅读(499)
评论(0)
推荐(0)
摘要:
最近一个师兄给我推荐了一些Mac上的实用工具,用起来非常顺手,能提高不少开发效率。于是就想着把自己之前用过的其他工具也整理一下,一块推荐给大家,希望能对大家有帮助。Alfred 目前Mac下最好用的快速启动工具,可以替代系统默认的Spotlight,快速的搜索本地程序、使用搜索引擎搜索、查询词典、发送邮件、查找文件、剪贴板 管理、音乐控制等等功能,十分强大。 官方网站: http://www.alfredapp.com/ 教程: http://www.cnbeta.com/articles/203640.htm BetterTouchTool Better... 阅读全文
posted @ 2013-08-22 18:55
Class Xman
阅读(628)
评论(0)
推荐(0)
摘要:
public void DeSerialize() { BinaryFormatter formatter = new BinaryFormatter(); AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(OnResolveAssembly); formatter.Deserialize(stream); AppDomain.CurrentDomain.AssemblyResolve -= new ResolveEventH... 阅读全文
posted @ 2013-08-22 18:52
Class Xman
阅读(379)
评论(0)
推荐(0)
摘要:
Problem B Number Sequence Input:standard input Output:standard output Time Limit:1 second A single positive integeriis given. Write a program to find the digit located in the positioniin the sequence of number groupsS1S2…Sk. Each groupSkconsists of a sequence of positive integer numbers ranging fro. 阅读全文
posted @ 2013-08-22 18:50
Class Xman
阅读(210)
评论(0)
推荐(0)
摘要:
opengl概述OpenGL(OpenGraphicsLibrary)是一个跨编程语言、跨平台的专业图形程序接口。 OpenGL是SGI公司开发的一套计算机图形处理系统,是图形硬件的软件接口,任何一个OpenGL应用程序无须考虑其运行环境所在平台与操作系统,在任何一个遵循OpenGL标准的环境下都会产生相同的可视效果。OpenGL不是一种编程语言,而是一种API(ApplicationProgrammingInterface,应用程序编程接口)。OpenGL的图形库函数封装在动态链接库OpenGL32.DLL中,开发基于OpenGL的应用程序,必须先了解OpenGL的库函数。OpenGL函数命 阅读全文
posted @ 2013-08-22 18:48
Class Xman
阅读(432)
评论(0)
推荐(0)

浙公网安备 33010602011771号