Attachment 'ray_matan.py'

Download

   1 #!/usr/bin/python
   2 n=int(raw_input())
   3 a=map(int, raw_input().split())
   4 b=map(int, raw_input().split())
   5 
   6 """
   7 Стыд мне и позор
   8 p=[a.index(b[i])+1 for i in xrange(n)]
   9 print " ".join(map(str, p))
  10 """
  11 
  12 p=[0 for i in xrange(n)]
  13 for i in xrange(n):
  14 	p[a[i]-1]=b[i]
  15 print " ".join(map(str,p))

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.

You are not allowed to attach a file to this page.