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 1203. Scientific Conference

Python 3. Code Improvement.
Posted by Dhruv Somani 1 May 2016 22:19
I wrote the following code. It takes 0.748 s, 13 524 KB. Can you suggest something faster?

[code deleted]


Edited by author 01.05.2016 22:19

Edited by moderator 04.12.2019 21:38
Re: Python 3. Code Improvement.
Posted by Dmitriy 21 Sep 2016 13:45
Why does this solution work? Can anybody prove that? I dont understand why it work. Thanks!
Re: Python 3. Code Improvement.
Posted by Daniil 8 Dec 2017 11:11
you can replace

for x in range(confs):
    l.append(tuple(map(int, input().split())))

by

for x in sys.stdin:
    l.append(tuple(map(int, x.strip().split())))