- 博客(9)
- 收藏
- 关注
原创 VS无法启动调试问题(以解决)
在 Visual Studio 2005 里面试图调试项目的时候出现错误信息:“无法启动调试 绑定句柄无效”。有三种解决方法: 在项目属性的 “Debug” (调试) 一项里,把 “Enable the Visual Studio hosting process” (启用Visual Studio 宿主进程) 选项禁掉(该项缺省是被启用的,用于提供经过优化的调试)。
2007-06-19 22:16:00
11724
原创 (代码实现)北京大学-JudgeOnline-2260
题目:Error Correction Time Limit:1000MS Memory Limit:65536KTotal Submit:1167 Accepted:791 DescriptionA boolean matrix has the parity property when each row and each column has an even sum, i.e. con
2007-06-15 20:49:00
775
原创 (代码实现)北京大学-JudgeOnline-1936
题目:All in All Time Limit:1000MS Memory Limit:30000KTotal Submit:5227 Accepted:1975 DescriptionYou have devised a new encryption technique which encodes a message by inserting between its characte
2007-06-15 20:38:00
606
原创 (代码实现)北京大学-JudgeOnline-1504
题目:Adding Reversed Numbers Time Limit:1000MS Memory Limit:10000KTotal Submit:3009 Accepted:1713 DescriptionThe Antique Comedians of Malidinesia prefer comedies to tragedies. Unfortunately, most o
2007-06-15 20:13:00
1028
原创 (代码实现)北京大学-JudgeOnline-1032
题目:Parliament Time Limit:1000MS Memory Limit:10000KTotal Submit:3430 Accepted:1504 DescriptionNew convocation of The Fool Lands Parliament consists of N delegates. According to the present regul
2007-06-11 23:09:00
1664
原创 (代码实现)北京大学-JudgeOnline-1004
题目:Financial Management Time Limit:1000MS Memory Limit:10000KTotal Submit:24778 Accepted:11717 DescriptionLarry graduated this year and finally has a job. Hes making a lot of money, but someho
2007-06-11 21:26:00
713
原创 (代码实现)北京大学-JudgeOnline-1318
先把代码实现部分写出来吧,然后分析,希望大家尊重源代码,只当作参考。源代码://AC#include "stdio.h"#include "string.h"#define MAXLEN 1000char a[MAXLEN][8];//原字符串char b[MAXLEN][8];//排序后的字符串char c[MAXLEN][8];//打乱的字符串char d[MAXLEN][8];//打乱的字符
2007-06-11 21:14:00
1029
原创 分治算法--进一步应用
在讲分治算法中,我先讲了简单的二分法.现在让我们来看看小问题的规模更多,更大的情况.残缺棋盘问题:一个棋盘,有2^k * 2^k个格,在这些格中有一个格是坏的,我们希望用三种形状的缺口2*2的正方形将整个残缺棋盘覆盖,我们应该怎么做呢,这个需要画图来理解.(出于时间的原因,我就不画了,题目自己去找)我给出我运行成功的代码:#include"stdio.h"int Board[100
2007-05-29 23:03:00
932
原创 分治思想的应用之——二分法
分治算法是一种很常用的思想,当你遇到大问题的时候,你可能无从下手,那么我们就可以想想问题能不能用分治法解决呢?应用分治法必须需要满足两个条件:(1)一个大问题它能分解成若干个独立的子问题(2)每个子问题的求解过程都和大问题相似当满足条件的时候,我们就可以试着用分治算法解决问题在分治算法中有一种分支叫二分法,顾名思义,就是将问题一分为二,然后在分的算法。应用很广泛,譬如折半查找,它的时间效率比起正常
2007-05-29 00:35:00
2010
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人