一、概述前几天我通过SSH正在调戏汤姆猫(tomcat)的时候,服务器上CentOS突然挂了。开机grub,使用光盘linux rescue修复提示找不到linux分区,然后想mount硬盘备份系统的时候提示硬盘无法挂载。没有办法只能重装系统。吃一堑长一智,决定定期备份下系统。何时进行备份?每天晚上...
分类:
其他好文 时间:
2014-07-16 22:51:44
阅读次数:
148
1. Open a terminal window.2. Type in the following commands, then hit Enter after each.wget ftp://ftp.mondorescue.org/ubuntu/`lsb_release -r|awk '{pri...
分类:
其他好文 时间:
2014-07-09 17:51:26
阅读次数:
272
长期使用windows 和 ubuntu 双系统的人,很有可能碰到重装某一个系统,或者另外添加分区,导致系统重启出现 :
GRUB loading
error:unknow filesystem
grub rescue>...
分类:
其他好文 时间:
2014-07-09 12:34:54
阅读次数:
223
Problem D
Prince and Princess
Input: Standard Input
Output: Standard Output
Time Limit: 3 Seconds
In an n x n chessboard, Prince and Princess plays a game. The squares in the chessboard are ...
分类:
其他好文 时间:
2014-07-09 11:44:54
阅读次数:
211
FDNY to the Rescue!
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 2368
Accepted: 721
Description
The Fire Department of New York (FDNY) has always been p...
分类:
其他好文 时间:
2014-07-03 17:40:05
阅读次数:
349
给出某些交叉点的距离,-1 表示无法到达。
然后给出火灾发生点 和 附近的消防局位置。
排列消防局 的 时间 与路径。
反向建图,以火灾出发点为起点做一次SPFA。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
...
分类:
其他好文 时间:
2014-07-02 09:47:43
阅读次数:
285
STL中的神器next_permutation和prev_permutation函数
全排列...
分类:
其他好文 时间:
2014-06-24 22:41:03
阅读次数:
271
Ubuntu和win双系统删除ubuntu开机出错问题。报错error:unknown filesystem。 grub rescue>_很简单:进入pe打开diskgenius选择你的硬盘右键-----重建主引导mbr点击确定收工。
题目思想比較简单,可是题目要求输出路径比較麻烦,学习了Ice_Crazy博主的方法,感觉不错。#include #include"stdio.h"#include"string.h"#include"queue"using namespace std;const int maxn = 100 + 5...
分类:
其他好文 时间:
2014-06-18 00:23:10
阅读次数:
233
题目链接:
http://acm.hdu.edu.cn/showproblem.php?pid=1242
题目:
Rescue
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 14614 Accepted Subm...
分类:
其他好文 时间:
2014-06-05 11:57:25
阅读次数:
288