Toggle navigation
HUSTOJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
Recent
Login
Problem2146--Count number and position
2146: Count number and position
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
201
Solved:
25
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
Input two strings s and t (the length of s is less than the length of t), and use the pointer to determine the number and position of s appearing in t.
Input
Given two strings
Output
output times and position
Sample Input
Copy
cnscnachi cn
Sample Output
Copy
2 times 0 3
Source/Category
191