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 2001. Mathematicians and Berries

Python - the hard way [from the series of exotic solutions]
Posted by ძამაანთ [Tbilisi SU] 5 Apr 2014 04:15
parsing in just one line XD

from string import *
from functools import *

[[a1,b1],[a2,b2],[a3,b3]] = map(partial(map,int),map(split,map(raw_input, [""]*3)))

& in py3k:
from functools import *
[[a1,b1],[a2,b2],[a3,b3]] = map(partial(map,int),map(lambda x:x.split(),map(input, [""]*3)))

Edited by author 05.04.2014 04:37
Re: Python - the hard way [from the series of exotic solutions]
Posted by Bulat 5 Aug 2014 19:27
a1, b1 = [int(num) for num in input().split()]
a2, b2 = [int(num) for num in input().split()]
a3, b3 = [int(num) for num in input().split()]

print(a1 - a3, b1 - b2)