n积分m文章无向边它输出一个哈密顿电路#include #include #include using namespace std;const int N = 155;int n, m;bool mp[N][N];int S, T, top, Stack[N];bool vis[N];void _r...
分类:
其他好文 时间:
2015-10-08 16:15:35
阅读次数:
166
Problem DescriptionSakura has a very magical tool to paint walls. One day, kAc asked Sakura to paint a wall that looks like an M×N matrix. The wall ha...
分类:
其他好文 时间:
2015-09-08 19:57:26
阅读次数:
207
你不必严格遵守这些原则,违背它们也不会被处以宗教刑罚。但你应当把这些原则看成警铃,若违背了其中的一条,那么警铃就会响起。 -----Arthur J.Riel (1)所有数据都应该隐藏在所在的类的内部。p13 (2)类的使用者必须依赖类的共有接口,但类不能依赖它的使用者。p15 (3)尽量减...
分类:
其他好文 时间:
2015-09-06 21:28:11
阅读次数:
159
解题报告 之 HDU5301 Buildings
Description
Your current task is to make a ground plan for a residential building located in HZXJHS. So you must determine a way to split the floor building with walls to make apartments in the shape of a rectangle. Each built wal...
分类:
其他好文 时间:
2015-08-19 01:59:54
阅读次数:
146
想要开始黑掉核?没有线索不知道如何开始?让我们向你展示如何做…
内核编程通常被视为黑魔法。在Arthur C Clarke的意义上说,它可能是。Linux内核与用户空间有很大的不同:抛开漫不经心的态度,你要格外小心,因为在你代码中的一个小小的bug都会影响整个系统。这里没有简单的方法来做浮点运算、堆栈既固定又小,你写的代码总是异步所以你需要考虑并发性。尽管如此,Linux内核是一个非常大而复...
分类:
系统相关 时间:
2015-08-18 16:23:21
阅读次数:
176
S-Nim
Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 5317 Accepted Submission(s): 2288
Problem Description
Arthur and his sister ...
分类:
其他好文 时间:
2015-08-04 23:01:08
阅读次数:
159
这个题,哈哈,很无语。
题意:给出所有左括号跟右括号之间合法的距离,求出一个合法的括号序列。
由于括号肯定是快点匹配完最好,所以维护一个栈,若当前的左括号可以被匹配那就匹配否则丢一个左括号进去。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#...
分类:
其他好文 时间:
2015-07-31 18:23:56
阅读次数:
144
Description
Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There are WALLs, ROADs, and GUARDs in the prison.Angel’s friends...
分类:
其他好文 时间:
2015-07-26 15:47:49
阅读次数:
86
Problem DescriptionYou may have heard of the book '2001 - A Space Odyssey' by Arthur C. Clarke, or the film of the same name by Stanley Kubrick. In it...
分类:
其他好文 时间:
2015-07-25 22:45:02
阅读次数:
155
昨天在使用adb卸载程序,结果死活卸载不了。我输入的命令和系统提示如下:[plain]view plaincopyarthur@arthur-laptop:~$adbuninstallcom.hase.bclm.client-2.apkFailure后来发现原来卸载程序时,只adb uninstal...
分类:
数据库 时间:
2015-07-21 16:36:30
阅读次数:
129