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

Some Hint for you!)
Posted by BaJIuK 2 Dec 2011 02:06
I use this!
 in_:=ord('i')*64+ord('n');
 out_:=ord('o')*4096+ord('u')*64+ord('t');
 on_:=ord('o')*64+ord('n');
 put_:=ord('p')*4096+ord('u')*64+ord('t');
 e_:=ord('e');

then you can do 'If' operation in o(1) time, so i get ac in 0.314
when i use strings i got TL!