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 1102. Strange Dialog

AC in Java!
Posted by ile 26 Jun 2010 05:16
OMG, finally Accepted...

I used DP with byte[10^7], and it actually works kinda slow (~0.85s) and uses 12Mb.

Tho I saw some solutions in java in 0.5-0.6s with less than 1 Mb... I wonder what they did...
Re: AC in Java!
Posted by Zayakin Andrey[PermSU] 13 Aug 2010 13:44
You may kept last about 20 symbols, and 20 state of dynamics.
Hmm, my scaning char by char get TL.

Edited by author 13.08.2010 14:05

Edited by author 13.08.2010 14:05
Re: AC in Java!
Posted by Lakers 16 Nov 2011 18:40
AC in Java without using DP only search and replace strings in an array of byte0.765sec.    7466 КБ