- 博客(116)
- 收藏
- 关注
原创 cp创建不存在的目录
可以把mkdir与cp联合使用:mkdir -p ~/TargetFile1/TargetFile2 && cp test.txt "$_" && cd "$_"事实上是三条命令和在一起的mkdir cp和cd。mkdir创建文件夹cp复制文件到"$_"位置。$_是指前面命令的返回值,也就是新建的目录。跳转到"$_"位置,进行接下来的操作。...
2021-07-14 17:34:01
3370
1
转载 sox和lame音频处理器
前两天想在ubuntu上录个音频文件,无意发现了一个有趣的音频处理器soxsudo apt-get install sox 先安装了sox之后发现有些文件不能play (比如mp3)sudo apt-get libsox-fmt-all还要下载一个解码包就可以解码所有其他的格式了。sox官方手册当然你也可以用lame将mp3转成wav再用sox play安装lamesudo apt-get inst
2015-09-16 01:31:56
7657
原创 将vim初步配置可以编译的编辑器(for windows)
关于vim的_vimrc文件配置网上有很多的介绍。可是配置好了之后却不一定能编译。本文将介绍如何配置环境变量 我的电脑上装了CB所以就直接用CB里的编译器了。1.我的电脑->属性->高级系统设置 2.修改环境变量 3.修改系统变量path,如果没有就新建一个 双击path,把CB下的bin文件路径复制进去,如果有其他的路径就用英文分号与其他的路径分割开来。比如 C:\xxx\xxx;
2015-09-04 21:28:41
670
原创 sox音频处理器
前两天想在ubuntu上录个音频文件,无意发现了一个有趣的音频处理器sox先安装了sox之后发现有些文件不能playsudo apt-get install sox libsox-fmt-all还要下载一个解码包就可以解码所有其他的格式了。
2015-08-13 12:05:27
921
转载 推荐ubuntu好用的词典stardict (安装及免费词库下载)
http://www.linuxidc.com/Linux/2012-09/69869.htm原文链接还有一篇blog供参考http://blog.youkuaiyun.com/lo5sea/article/details/22760831词库下载,找了好久。亲测有效
2015-08-11 17:49:44
2848
原创 CDOJ 1114 Cent Savings
Cent SavingsTime Limit: 6000/2000MS (Java/Others) Memory Limit: 262144/262144KB (Java/Others)Submit StatusTo host a regional contest like NWERC a lot of preparation is nece
2015-05-17 20:00:57
910
原创 Cf Round #301 (Div. 2) D. Bad Luck Island
D. Bad Luck Islandtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Bad Luck Island is inhabited by thre
2015-05-01 15:20:54
416
原创 Google Code Jam Round 1A 2015 Problem B. Haircut
ProblemYou are waiting in a long line to get a haircut at a trendy barber shop. The shop has Bbarbers on duty, and they are numbered 1 through B. It always takes the kth barber exactly Mk minutes
2015-04-18 19:02:11
862
原创 Google Code Jam Qualification Round 2015 Problem B. Infinite House of Pancakes
ProblemAt the Infinite House of Pancakes, there are only finitely many pancakes, but there are infinitely many diners who would be willing to eat them! When the restaurant opens for breakfast, amo
2015-04-18 17:25:10
771
原创 TC SRM656 Div2 500 RandomPancakeStack
Problem StatementCharlie has N pancakes. He wants to serve some of them for breakfast. We will number the pancakes 0 through N-1. For each i, pancake i has width i+1 and deliciousnessd[i].Charli
2015-04-17 22:09:09
817
原创 cdoj Egg Broken
E - Eggs brokenTime Limit: 5000/2000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others)There is a building which is n floors high. Bob has K same eggs now. It is known
2015-04-07 22:47:20
620
原创 CF 526C Om Nom and Candies
C. Om Nom and Candies time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputA sweet little monster Om Nom loves candies very much. One
2015-04-06 01:54:25
1271
原创 HYSBZ 1007 水平可见直线
Description 在xoy直角坐标平面上有n条直线L1,L2,...Ln,若在y值为正无穷大处往下看,能见到Li的某个子线段,则称Li为可见的,否则Li为被覆盖的. 例如,对于直线: L1:y=x; L2:y=-x; L3:y=0 则L1和L2是可见的,L3是被覆盖的. 给出n条直线,表示成y=Ax+B的形式(|A|,|B|
2015-04-02 19:09:34
465
原创 CF 525 C. Ilya and Sticks
C. Ilya and Stickstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn the evening, after the contest Ilya was bored,
2015-03-30 22:08:43
538
原创 CF 525B Pasha and String
B. Pasha and Stringtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPasha got a very beautiful string s for his birth
2015-03-30 20:36:31
584
原创 POJ 1723 SOLDIERS
POJ - 1723SOLDIERSTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionN soldiers of the land Gridland are randomly scat
2015-03-29 16:28:57
571
原创 CDOJ 796 DAGE(Big Brother)
DAGE(Big Brother) Time Limit: 3000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others)Our famous “DAGE”, God Kufeng, likes killing monsters. However, killing monster
2015-03-24 20:24:56
725
原创 CF 2014 ACM-ICPC Vietnam National Second Round I. Space Tour
I. Space Tourtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlpha Centauri-M (ACM) is a planet with marvelous scene
2015-03-16 16:53:06
787
原创 CF 2014 ACM-ICPC Vietnam National Second Round C. ATM withdrawal
C. ATM withdrawaltime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVinh works for an ATM machine manufacturing company
2015-03-15 20:53:07
975
原创 CF 2014 ACM-ICPC Vietnam National Second Round D. Treasure Box
D. Treasure Boxtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYour team was exploring an ancient city. Suddenly you
2015-03-15 20:09:07
724
原创 LA 4513 Stammering Aliens
Description Dr. Ellie Arroway has established contact with an extraterrestrial civilization. However, all efforts to decode their messages have failed so far because, as luck would have it, they h
2015-03-14 13:42:17
448
原创 CF 273C C. Dima and Horses
C. Dima and Horsestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDima came to the horse land. There are n horses li
2015-03-12 21:09:55
690
原创 CF 267B Dominoes
B. Dominoestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a set of dominoes. Each domino is a rectangular
2015-03-08 14:54:03
579
原创 ZOJ 3623 Battle Ships
DescriptionBattle Ships is a new game which is similar to Star Craft. In this game, the enemy builds a defense tower, which hasL longevity. The player has a military factory, which can produce
2015-03-07 20:31:49
377
原创 ZOJ 3626 Treasure Hunt I
DescriptionAkiba is a dangerous country since a bloodsucker living there. Sometimes the bloodsucker will appear and kill everyone who isn't at his hometown. One day, a brave person named CC finds
2015-03-06 21:37:32
436
原创 ZOJ 3623 Battle Ships
DescriptionBattle Ships is a new game which is similar to Star Craft. In this game, the enemy builds a defense tower, which hasL longevity. The player has a military factory, which can produce
2015-03-05 20:56:42
352
原创 SPOJ MCARDS
Dave’s little son Maverick likes to play card games, but being only fouryears old, he always lose when playing with his older friends. Also,arranging cards in his hand is quite a problem to him.Wh
2015-02-08 18:53:03
548
原创 POJ 3636 Nested Dolls
Nested DollsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7861 Accepted: 2134DescriptionDilworth is the world's most prominent collector of Russia
2015-02-06 02:23:23
880
原创 ACdream 1427 Nice Sequence
Nice SequenceTime Limit:2000MS Memory Limit:64000KB 64bit IO Format:%lld & %lluSubmitStatusDescription Let us consider the sequence a1, a2,..., an of non
2015-02-05 17:55:14
505
原创 CF 254Div1 C.DZY Loves Colors
C. DZY Loves Colorstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDZY loves colors, and he enjoys painting.On a c
2015-02-04 11:47:34
706
原创 uva 12345 Dynamic len(set(a[L:R]))
DescriptionK Dyanmic len(set(a[L:R])) Input: Standard Input Output: Standard Output In python, we can use len(start(a[L:R])) to calculate the number of di
2015-02-04 11:39:44
1337
原创 CF 290Div2 C Fox And Names
C. Fox And Namestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputFox Ciel is going to publish a paper on FOCS (Foxes
2015-02-04 11:35:09
471
原创 hdu 4858 项目管理
Description我们建造了一个大项目!这个项目有n个节点,用很多边连接起来,并且这个项目是连通的! 两个节点间可能有多条边,不过一条边的两端必然是不同的节点。 每个节点都有一个能量值。 现在我们要编写一个项目管理软件,这个软件呢有两个操作: 1.给某个项目的能量值加上一个特定值。 2.询问跟一个项目相邻的项目的能量值之和。(如果有多条边就算多次,比如a和b有2
2015-02-04 10:39:39
473
原创 POJ 3622 Gourmet Grazers
DescriptionLike so many others, the cows have developed very haughty tastes and will no longer graze on just any grass. Instead, Farmer John must purchase gourmet organic grass at the Green Gr
2015-01-31 23:44:24
715
原创 HDU 4162 Shape Number
DescriptionIn computer vision, a chain code is a sequence of numbers representing directions when following the contour of an object. For example, the following figure shows the contour represente
2015-01-27 21:39:27
477
原创 HDU 4165 Pills
PillsTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionAunt Lizzie takes half a pill of a certain medicine every day. S
2015-01-27 21:20:54
534
原创 LA 4888 Railroad
DescriptionA train yard is a complex series of railroad tracks for storing, sorting, or loading/unloading railroad cars. In this problem, the railroad tracks are much simpler, and we are only inte
2015-01-21 18:49:33
674
原创 LA 4426 Blast the Enemy!
A new computer game has just arrived and as an active and always-in-the-scene player, you should finish it before the next university term starts. At each stage of this game, you have to shoot an enem
2015-01-19 18:49:54
527
原创 uva 11235 Frequent values
DescriptionYou are given a sequence of n integers a1 , a2 , ... , an in non-decreasing order. In addition to that, you are given several queries consisting of indicesi and j (1 ≤ i ≤ j ≤ n). F
2015-01-19 11:11:47
383
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人