poj 1035
来源:互联网 发布:如何用c语言做贪吃蛇 编辑:程序博客网 时间:2024/06/05 08:03
这是一个简单的字符串查找和判断问题:
题目的大意是:
输入一部字典,输入若干单词
1、
2、
3、
这个题目的关键在于理解:若某个单词能通过交换、删除、添加一个字符,而变成字典中的某个单词,那么这个单词和字典中的那个肯定只相差一个字符。
下面是我的代码:
//Memory Time
//456K
#include
#include
using namespace std;
char dict[10001][16];
char word[51][16];
int DictNum=0; //字典计数器
int WordNum=0; //单词计数器
void Input(void);
bool Change(char* word,char* dict);
bool Del(char* word,char* dict);
bool Add(char* word,char* dict);
int main(void)
{
}
void Input(void)
{
}
bool Change(char* word,char* dict)
{
}
bool Del(char* word,char* dict)
{
}
bool Add(char* word,char* dict)
{
}
- poj 1035
- poj 2488
- POJ 3299
- poj 1905
- POJ 2485 Highways
- POj 1017 Packets
- poj 1020 搜索
- poj 3278 宽搜
- poj 1426 宽搜
- poj 1925 Spiderman
- poj 3259 Wormholes
- POJ 2160 BOX
- POJ 2190 ISBN
- poj 3299 humidex
- poj 2253 Frogger
- poj 2485 Highways
- poj 3041 Asteroids
- poj 数论 1845
- 14.java NumberFormat 类
- 黑马程序员—GUI(键盘事件)小例子
- UnsupportedOperationException
- 欢迎您在新浪博客安家
- poj 2965
- poj 1035
- poj 3080
- poj 3259 最短路(带负环)
- poj 1860 最短路
- 通过U盘安装freenas(新增的简单方法)
- poj 1062 最短路
- 匈牙利算法
- scanf和cin的区别 (效率的差距)
- 解决Y450安装ubuntu12.04之后亮度无法调节