码迷,mamicode.com
首页 >  
搜索关键字:cut    ( 5015个结果
一键安装smokeping脚本
#!/bin/bashlocal_ip=`/sbin/ifconfig|grep‘inetaddr:‘|grep-Ev‘127.0.0.1‘|cut-d:-f2|awk‘{print$1}‘|head-n1`#installepelreporpm-Uvhhttp://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm#installrequiresoftwareyum-yinstallp..
分类:其他好文   时间:2015-03-20 22:17:16    阅读次数:213
hdu 1455 Sticks DFS 又是一个花样剪枝 ,累觉不爱
Problem Description George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he forgot how many sticks he had originally and how long they were origin...
分类:其他好文   时间:2015-03-20 11:05:11    阅读次数:129
Topcoder SRM 655 DIV1 250 CountryGroupHard
题意:不同国家的人站在一起,同一个国家的人相邻站,给你一个数组,表示 这个位置属于的国家有几个人,0可以是任何数字,问你能不能确定这个数组(只有一个解)解题思路:搜索解题代码: 1 // BEGIN CUT HERE 2 /* 3 4 */ 5 // END CUT HERE 6 #l...
分类:其他好文   时间:2015-03-18 12:10:34    阅读次数:191
更改git bash默认的路径
在打开git bash时,每次都是在C:\Uer路径下,每次都需要先用cd命令转换到自己需要工作的路径(cd  /f/dss)。修改打开git bash 时的默认的路径就可以不用每次都使用cd命令转换到需要管理的目录。 修改默认路径方法:右击Git Bash图标--->选择Short Cut标题栏--->修改Start in为想要管理的目录。...
分类:其他好文   时间:2015-03-16 17:54:51    阅读次数:105
HDU(1220)——Cube
Problem Description Cowl is good at solving math problems. One day a friend asked him such a question: You are given a cube whose edge length is N, it is cut by the planes that was paralleled to its ...
分类:其他好文   时间:2015-03-14 11:02:15    阅读次数:171
hdu 1220 Cube 简单数论
Problem Description Cowl is good at solving math problems. One day a friend asked him such a question: You are given a cube whose edge length is N, it is cut by the planes that was paralleled to its side planes into N * N * N unit cubes. Two unit cubes may...
分类:其他好文   时间:2015-03-12 15:08:38    阅读次数:216
日志切割|程序数据库备份
日志切割#!/bin/bash #cutnginxlogs nginx_sbin="/usr/local/openresty/nginx/sbin/nginx" log_files_path="/usr/local/openresty/nginx/logs" cut_log_files_dir="/data/logs" logfilename_array=(www.bbs.com) date=`date+%Y-%m-%d-d"1daysago"` suffix=".log.gz" ProjectNam..
分类:数据库   时间:2015-03-10 19:44:32    阅读次数:458
Topcoder SRM 652 DIV1 250
题意:大概是求前n个数的最大公倍数。解题思路:筛法+质因子分解,敲玩就去睡觉了,没想到没优化被cha了。。。解题代码: 1 // BEGIN CUT HERE 2 /* 3 4 */ 5 // END CUT HERE 6 #line 7 "ThePermutationGame.cpp...
分类:其他好文   时间:2015-03-10 08:58:27    阅读次数:387
C#记事本的制作
一、菜单命令的实现 textbox: 属性: text:文本 selectedtext:获取或设置选中文本 canundo:是否能够撤销 方法: undo:撤销 clearundo:清空撤销缓冲区 cut:剪切 copy:复制 Paste:粘贴 SelectAl...
分类:Windows程序   时间:2015-03-09 23:55:18    阅读次数:428
winform 记事本编程部分
textbox: 属性: text:文本 selectedtext:获取或设置选中文本 canundo:是否能够撤销方法: undo:撤销 clearundo:清空撤销缓冲区 cut:剪切 copy:复制Paste:粘贴 SelectAll:全选对话框: showdialog();显示对话框,...
分类:Windows程序   时间:2015-03-09 23:50:38    阅读次数:375
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!