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

ace.Vendigo How to read in Java? [1] // Problem 1102. Strange Dialog 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
Vedernikoff 'Goryinyich' Sergey (HSE: АОП) Re: How to read in Java? // Problem 1102. Strange Dialog 19 Sep 2013 03:31
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.