内部赛 3 D Deli Deli
来源:互联网 发布:java 判断日期相等 编辑:程序博客网 时间:2024/05/21 07:08
Deli Deli
Time Limit: 1000MS Memory limit:65536K
题目描述
Mrs. Deli isrunning the delicatessen store "Deli Deli". Last year Mrs. Deli hasdecided to expand her business and build up an online store. Shehas hired a programmer who has implemented the onlinestore.
Recently some of her new online customerscomplained about the electronic bills. The programmer had forgottento use the plural form in case that an item is purchased multipletimes. Unfortunaly the programmer of Mrs. Deli is on holiday andnow it is your task to implement this feature for Mrs. Deli. Hereis a description how to make the plural form:
- If the word is in the list of irregular wordsreplace it with the given plural.
- Else if the word ends in a consonant followedby "y", replace "y" with "ies".
- Else if the word ends in "o", "s", "ch", "sh"or "x", append "es" to the word.
- Else append "s" to the word.
输入
The first lineof the input file consists of two integers
输出
Print
示例输入
3 7rice ricespaghetti spaghettioctopus octopiricelobsterspaghettistrawberryoctopuspeachturkey
示例输出
ricelobstersspaghettistrawberriesoctopipeachesturkeys
字符串的处理,注意看清题意!!!
代码:
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct node
{
}str[25];
char str1[105];
int main()
{
}
- 内部赛 3 D Deli Deli
- 内部赛3 F Frequent values
- 内部赛3 B Black and white painti…
-  
-
- 3D camera or light field camera)
- CSS3 3D Transforms
- 3D Face replicas
- Android 粒子 3D效果
- Co-segmentation of 3D shapes
- ESLPodcast 12 - D…
- HDOJ 2503 a/b + c/d
- ZZULI_SummerPractice(3) HDU 1…
- ACM: 浙江省赛题目 22:00 ~ 3:00 (…
- XML Parsing Error: XML or text d…
- poj 2387 : Til the Cows (d…
- Windows 7 - Services - Restore D…
- Nios II Step By Step 3--Nios II …
- DOS命令大全系列四
- poj 1062 昂贵的聘礼
- poj 2253 Frogger
- poj 1125 Stockbroker Grapevine
- 内部赛3 B Black and white painti…
- 内部赛 3 D Deli Deli
- 内部赛3 F Frequent values
- poj 1789 Truck History
- poj 2485 Highways
- poj 3041 Asteroids
- poj 3020 Antenna Placement
- 显卡对决 NVIDIA GT 555M VS…
- 自己的集训队生活
- poj 1426 Find The Multiple(Spec…