10815专题

例题:安迪的第一个字典(UVa 10815)

【问题描述】输入一个文本,找出所有不同的单词(连续的字母序列),按字典序从小到大输出。单词不区分大小写。 【样例输入】 Adventures in Disneyland Two blondes were going to Disneyland when they came to a fork in the road. The sign read: "Disneyland Left."

10815 - Andy‘s First Dictionary(UVA)

题目链接如下: Online Judge 代码如下: #include <cstdio>#include <set>#include <string>#include <algorithm>// #define debugint main(){#ifdef debugfreopen("0.txt", "r", stdin);freopen("1.txt", "w", stdout);