01 2012 档案
摘要:安装了Ubuntu11.10,Unity界面实在是不怎么习惯。遂换回Gnome。 1. 首先安装Gnome sudo apt-get install gnome-shell sudo apt-get install gnome-tweak-tool 2. 设置自动登录Gnome shell classic sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-classic 由于笔记本是A卡,Gnome3各种悲剧,干脆就用classic。闲了折腾一下A卡的Gnome3,备忘一个网址http://wiki.cchtm...
阅读全文
摘要:尝试了一个多月LinuxMint,感觉不如Ubuntu,Fedora用着舒服。昨日更是诡异地瞬间关机,之后就一直卡在Linux启动界面进不了系统,遂决定卸载LinuxMint。 网上有各种方法,我使用的是最暴力的----直接格掉Linux的几个分区。 1.在Win7中用Disc Management将分给Linux的几个区格掉后,重启; 2.出现Grub Rescue,至于为什么出现这个应该是由于grub的mbr找不到在Linux分区中的/grub目录; 3.将Win7的盘放入,重启,选光盘启动,这里可以有两种方法:一种是进入安装windows的选项,一直到安装Windows的界面...
阅读全文
摘要:1146: Word ReversalResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K2658690StandardFor each list of words, output a line with each word reversed without changing the order of the words.This problem contains multiple test cases!The first line of a multiple input is an integer N, then a blank
阅读全文
摘要:1024: Function Run FunResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K28941177StandardWe all love recursion! Don't we?Consider a three-parameter recursive function w(a, b, c):if a <= 0 or b <= 0 or c <= 0, then w(a, b, c) returns:1if a > 20 or b > 20 or c > 20, then w(
阅读全文
摘要:1006: All your baseResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K59671984StandardGiven a base, and two positive integers in decimal (base 10), convert the two numbers to the new base, add them, and display their sum in the new base.InputThree positive integers denoting the base and the tw
阅读全文
摘要:1277: Fibonacci FreezeResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K2367561StandardThe Fibonacci numbers (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, ...) are defined by the recurrence:Write a program to calculate the Fibonacci Numbers.Input and OutputThe input to your program would be a sequenc
阅读全文
摘要:1011: If only I had a Venn diagramResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s524288K39901595StandardThe symmetric difference of two sets is the set of elements belonging to one but not both of the two sets. For example, if we have two sets A = {1,2,3,4,5} and B = {3,4,5,6,7,8}, then the sym
阅读全文
摘要:[JPoints: 381, Sender!: 0/0]1008: Go hang a salami, IResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K86581612StandardGiven a character string, determine if it is a palindrome. A palindrome is a word or phrase that reads the same forwards and backwards, like mom or noon. For our purposes, pa
阅读全文
摘要:2090: Clay BullyResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K421266StandardMs. Terry is a pre-school art teacher who likes to have her students work with clay. One of her assignments is to form a lump of clay into a block and then measure the dimensions of the block. However, in every cl
阅读全文
摘要:2230: Peter's smokesResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE1s8192K976410StandardPeter has n cigarettes. He smokes them one by one keeping all the butts. Out of k > 1 butts he can roll a new cigarette.How many cigarettes can Peter have?Input SpecificationInput is a sequence of lines
阅读全文
摘要:1023: Digital RootsResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K63851371StandardBackgroundThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains tw
阅读全文
摘要:1175: The Binomial FunctionResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K2837844Standard1st Jilin University ACM International Collegiate Programming ContestIn this problem, you are to write a program to make the value ofthe binomial function:where n and m are integers.Input Specification
阅读全文
摘要:Linux文件结构参见笔记第0篇 磁盘Linux分区必须挂载到目录树中的某个具体的目录上才能进行读写操作。根目录是所有Linux的文件和目录所在的地方,需要挂载上一个磁盘分区。一般来说,安装Linux至少要分三个区,即:/, /boot, swap。 在硬件软件的发展过程中,1024柱面限制以及137G问题都得到了解决。对于/boot是否要单独分出还有争议。独立有利于避免文件系统损坏造成的无法启动问题(据说),还有人将多个Linux启动都安在/boot上。对于新的Grub来说,/boot如果没有分的话确实不会影响到Linux系统的启动。当然,如果要安复古一些的Redhat4之类的,...
阅读全文
摘要:首先上卡马克大神的靓照。Quake III的源代码里面发现这么一段用来求平方根的代码: 1 /*================SquareRootFloat================*/ 2 float SquareRootFloat(float number) { 3 long i; 4 float x, y; 5 const float f = 1.5F; 6 x = number * 0.5F; y = number; 7 i = * ( long * ) &y; 8 i = 0×5f3759df - ( i >> 1 ); //注...
阅读全文
摘要:// ************************************************************ //// 本文源自飞燕之家在线测评论坛http://yzfy.org/,转载清注明出处 //// ************************************************************ //代码调试技巧小集合(C语言描述,但C/C++/Pascal通用)1.输入重定向有不少人对自己提交到网站里得到的错误的结果而感到莫名其妙。但有可能由于题目的输入数据巨多,要是手工输入将会非常累。例如输入的数据可能多达成千上万。其实以下将要介绍的代码技
阅读全文
摘要:版本一:简单题1000A+BProblem1001Exponentiation1003Hangover1004FinancialManagement1005IThinkINeedaHouseboat1005Biorhythms1007DNASorting1013CounterfeitDollar1014Dividing1032Parliament1045BodePlot1119StartUptheStartup1131OctalFractions1142SmithNumbers1151Atlantis1152AnEasyProblem!1188GleamingtheCubes1207The3n
阅读全文
摘要:做男人不容易系列Solutions Amber2yearsago,ItrainedinFudanUniversityinShanghaiandattendedthiscontestholdbyLouTiancheng.Thetitleofthiscontestis“hardtobeaman”andthesubtitleis“Ifyouareaman,passall8problems”.Igotonly1problemacceptedatthattime.Actually,noone...
阅读全文
摘要:0------------------------------------------------------------------------------------1. 学习流程 1. Linux平台的开发,vi、gcc、gdb、mysql、tomcat等基本操作 2.《C专家编程》 3. 学习UNIX高级编程《UNIX环境高级编程》 4. Linux应用系统开发/Linux嵌入式开发2. Linux学习方法 1. 用什么再学什么 2. 先know how 再know why 3. 计算机是...
阅读全文

浙公网安备 33010602011771号