poj 1936 All in All
来源:互联网 发布:release 优化 编辑:程序博客网 时间:2024/06/04 01:20
纯暴力!!!!!,很久没有享受到1Y的感受了
Description
You have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Because of pending patent issues we will not discuss in detail how the strings are generated and inserted into the original message. To validate your method, however, it is necessary to write a program that checks if the message is really encoded in the final string.
Given two strings s and t, you have to decide whether s is a subsequence of t, i.e. if you can remove characters from t such that the concatenation of the remaining characters is s.
Given two strings s and t, you have to decide whether s is a subsequence of t, i.e. if you can remove characters from t such that the concatenation of the remaining characters is s.
Input
The input contains several testcases. Each is specified by two strings s, t of alphanumeric ASCII characters separated by whitespace.The length of s and t will no more than 100000.
Output
For each test case output "Yes", if s is a subsequence of t,otherwise output "No".
Sample Input
sequence subsequenceperson compressionVERDI vivaVittorioEmanueleReDiItaliacaseDoesMatter CaseDoesMatter
Sample Output
YesNoYesNo
0 0
- poj 1936 "all in all"
- poj 1936 All in All
- POJ 1936 All in All
- poj 1936 All in All
- POJ 1936 all in all
- POJ 1936 All in All
- POJ 1936 All in All
- POJ 1936 All in All
- POJ-1936-All in All
- poj 1936 all in all
- poj 1936 All in All
- POJ 1936 All in ALL
- poj 1936 All in All
- poj 1936 All in All
- POJ 1936 All in All
- All in All(poj 1936)
- poj 1936 All in All
- poj 1936 All in All
- va_start和va_end使用详解
- 数据结构之树和二叉树---二叉树的基本操作
- POJ 3349 Snowflake Snow Snowflakes
- [leetcode-81]Search in Rotated Sorted Array II(C)
- LightOJ 1236 - Pairs Forming LCM (LCM·唯一分解)
- poj 1936 All in All
- 操作系统note
- viewPager+RadioButton+Fragment
- 【机房合作】状态模式与上机
- Netstat 简介
- 【.Net MVC学习笔记】--过滤器
- HDU 1030
- Spring事务传播性与隔离级别
- 直接读取某URL流数据