1poj1598(字符串)
来源:互联网 发布:中标麒麟装软件 编辑:程序博客网 时间:2024/05/21 09:59
http://poj.org/problem?id=1598
Description
Input
Output
For each set of input, you are to print a single line with thenumber of the set immediately after the string "Excuse Set #". (Seethe Sample Output). The following line(s) is/are to contain theworst excuse(s) one per line exactly as read in. If there is morethan one worst excuse, you may print them in any order. After eachset of output, you should print a blank line.
Sample Input
5 3dogatehomeworkcanarydiedMy dog ate my homework.Can you believe my dog died after eating my canary... AND MY HOMEWORK?This excuse is so good that it contain 0 keywords.6 5superhighwaycrazythermonuclearbedroomwarbuildingI am having a superhighway built in my bedroom.I am actually crazy.1234567890.....,,,,,0987654321?????!!!!!!There was a thermonuclear war!I ate my dog, my canary, and my homework ... note outdated keywords?
Sample Output
Excuse Set #1Can you believe my dog died after eating my canary... AND MY HOMEWORK?Excuse Set #2I am having a superhighway built in my bedroom.There was a thermonuclear war!
Source
每次给你K个单词,再给你E行句子,问你哪些句子包含最多单词(给过你的K个单词)
其中,句子中单词是以标点符号和空格分开的,匹配不区分大小写
#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
char key[21][100],s[21][100],ch[100];
int num[100];
int main()
{
}
- 1poj1598(字符串)
- poj1598(字符串处理)
- poj1598
- poj1598
- POJ1598
- poj1598 Excuses, Excuses!
- poj1598 Excuses,Excuses!
- POJ1598-C语言
- 字符串1
- 字符串1
- 字符串1
- 字符串(1)
- 字符串1包含几个字符串2
- C 删除字符串1中的字符串2
- Transact-SQL: 字符串函数(1)--截取字符串
- 字符串1—字符串的旋转
- 字符串分割1&&字符串分割2
- 将字符串1复制给字符串2
- 未uva550(数论)
- ExtAspNet快速入门 - 原生Ajax与PageManager控件
- 1uva408(数论)
- uva10916
- 1cf136div2
- 1poj1598(字符串)
- 1poj2240(bellman_ford||floyd)
- 我的博客今天0岁231天了,我领取了…
- poj2240(bellman_ford||floyd)
- poj2182(线段树计算元素位置)
- poj2828(线段树点的查询)
- 线段树模版
- hdoj1166(点树的更新和查询)
- hdu1394(点树在逆序数中的应用)