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

How to read in Java?
Posted by ace.Vendigo 18 Sep 2013 18:24
"(one|puton|out|output|in|input)+"
it has simple solve using regexp, but i got ML 1. How to read correctly?

Edited by author 18.09.2013 18:24
Re: How to read in Java?
Read only char-by-char (token-by-token). In the worst case you will have one string of 10^7 chars - this will get ML anyway (and with java it will occur much earlier). So, don't cheat, write parser honestly.