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

Common Board

Confused
Posted by Petko Minkov 30 May 2001 16:20
I solve this problem with complexity O(N*6). I use DP.
The inner cycle with complexity O(6) (heh, it's not correct
notation but...) is checking for finding words.
I read the input with cin.get(ch). And i use cin.ignore to
skip characters when i know that this is not "dialogue".

Is there real linear time solution?
Confused with 1102 (I cannot post on board 1102!?) (-)
Posted by Petko Minkov 30 May 2001 16:22