Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin.stu.neva.ru!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; '(python': 0.05; 'second.': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'finished': 0.15; 'stdin': 0.16; 'subject:Regular': 0.16; 'subject:expression': 0.16; 'subject:problem': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'tried': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; '2.6': 0.27; 'chris': 0.28; 'problem': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'test': 0.36; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'sure': 0.38; 'where': 0.40; 'your': 0.60; 'limit?': 0.84; 'windows)': 0.84 X-Received: by 10.50.163.41 with SMTP id yf9mr586189igb.3.1362938756930; Sun, 10 Mar 2013 11:05:56 -0700 (PDT) Newsgroups: comp.lang.python Date: Sun, 10 Mar 2013 11:05:56 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=115.254.66.3; posting-account=utVMDgoAAACBclB38JUYjL1LjVN2Gha6 References: User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 115.254.66.3 MIME-Version: 1.0 Subject: Re: Regular expression problem From: mukesh tiwari To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362939467 news.xs4all.nl 6854 [2001:888:2000:d::a6]:59570 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41029 Hi Chris On the problem page, it is 3 second. > What is the time limit? I just tried it (Python 2.6 under Windows) and > > it finished in a humanly-immeasurable amount of time. Are you sure > > that STDIN (eg raw_input()) is where your test data is coming from? Yes, on SPOJ we read data from STDIN. Regards Mukesh Tiwari > > > > ChrisA