ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1723. Sandro's Book

For the input "tebidohtebidoh", is substring "t" to be a right output?
Posted by JohnsonGuo 17 Oct 2009 19:28
substring "t" encounters in the input string twice, as many as "tebidoh" encounters.
Re: For the input "tebidohtebidoh", is substring "t" to be a right output?
Posted by Oleg Strekalovsky aka OSt [Vologda SPU] 17 Oct 2009 19:29
Yes ! =)
So you can calculate amount of every letter and then print answer
o(string length)


Edited by author 17.10.2009 19:30