2013年9月14日

VIM 学习笔记

摘要: 复制粘贴[转]Vim 复制粘贴探秘Vim作为最好用的文本编辑器之一,使用vim来编文档,写代码实在是很惬意的事情。每当学会了vim的一个新功能,就会很大地提高工作效率。有人 使用vim几十年,还没有完全掌握vim的功能,这也说明了vim的强大。而这样何尝不是一件好事呢,只要有的学习,就有的提高。最近使用Vim来写博客,发现在Vim中粘贴Python代码后,缩进就全乱了。仔细研究了以下,原来是自动缩进的缘故,于是做如下设置::set noai nosi取消了自动缩进和智能缩进,这样粘贴就不会错行了。但在有的vim中不行,还是排版错乱。后来发现了更好用的设置::set paste进入paste模式 阅读全文

posted @ 2013-09-14 22:55 zhaosdfa 阅读(206) 评论(0) 推荐(0) 编辑

2013年8月20日

UVA 10340 - All in All

摘要: Problem EAll in AllInput: standard inputOutput: standard outputTime Limit: 2 secondsMemory Limit: 32 MBYou have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Because of pending patent issues we will not disc 阅读全文

posted @ 2013-08-20 21:26 zhaosdfa 阅读(154) 评论(0) 推荐(0) 编辑

UVA 10970 - Big Chocolate Amirkabir University of Technology - Local Contest - Round #2 G

摘要: Problem GBig ChocolateMohammad has recently visited Switzerland. As he loves his friends very much, he decided to buy some chocolate for them, but as this fine chocolate is very expensive(You know Mohammad is a little BIT stingy!), he could only afford buying one chocolate, albeit a very big one (pa 阅读全文

posted @ 2013-08-20 20:38 zhaosdfa 阅读(266) 评论(0) 推荐(0) 编辑

LA 3602 UVA 1368 - DNA Consensus String

摘要: Figure 1. DNA (Deoxyribonucleic Acid) is the molecule which contains the genetic instructions. It consists of four different nucleotides, namely Adenine, Thymine, Guanine, and Cytosine as shown in Figure 1. If we represent a nucleotide by its initial character, a DNA strand can be regarded as a lon. 阅读全文

posted @ 2013-08-20 20:15 zhaosdfa 阅读(398) 评论(0) 推荐(0) 编辑

2013年8月15日

将博客搬至CSDN

摘要: .. 阅读全文

posted @ 2013-08-15 15:25 zhaosdfa 阅读(93) 评论(0) 推荐(0) 编辑

UVA 1339 - Ancient Cipher

摘要: Ancient Roman empire had a strong government system with various departments, including a secret service department. Important documents were sent between provinces and the capital in encrypted form to prevent eavesdropping. The most popular ciphers in those times were so called substitution cipher 阅读全文

posted @ 2013-08-15 10:49 zhaosdfa 阅读(311) 评论(0) 推荐(0) 编辑

UVA 11039 - Building designing

摘要: Building designingAn architect wants to design a very high building. The building will consist of some floors, and each floor has a certain size. The size of a floor must be greater than the size of the floor immediately above it. In addition, the designer (who is a fan of a famous Spanish football 阅读全文

posted @ 2013-08-15 10:06 zhaosdfa 阅读(233) 评论(0) 推荐(0) 编辑

LA 3177 UVA 1335 - Beijing Guards

摘要: Time limit: 3.000 secondsBeijing was once surrounded by four rings of city walls: the Forbidden City Wall, the Imperial City Wall, the Inner City Wall, and finally the Outer City Wall. Most of these walls were demolished in the 50s and 60s to make way for roads. The walls were protected by guard tow 阅读全文

posted @ 2013-08-15 09:00 zhaosdfa 阅读(296) 评论(0) 推荐(0) 编辑

2013年8月12日

LA 3902 UVA 1267 - Network

摘要: 1267 - NetworkTime limit: 3.000 secondsConsider a tree network with n nodes where the internal nodes correspond to servers and the terminal nodes correspond to clients. The nodes are numbered from 1 to n . Among the servers, there is an original server S which provides VOD (Video On Demand) service. 阅读全文

posted @ 2013-08-12 19:57 zhaosdfa 阅读(414) 评论(0) 推荐(0) 编辑

2013年8月9日

Ubuntu Eclipse 提示颜色

摘要: 以前用过这个软件 但是忘了名字 今天终于找到了,GNOME Color Chooser。解决了Eclipse提示的颜色问题。 阅读全文

posted @ 2013-08-09 16:50 zhaosdfa 阅读(125) 评论(0) 推荐(0) 编辑

导航