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.- [get | view] (2012-04-20 11:40:33, 0.6 KB) [[attachment:BurrowsWheeler.c]]
- [get | view] (2012-04-20 11:40:20, 3.3 KB) [[attachment:BurrowsWheeler.py]]
- [get | view] (2012-04-20 11:39:59, 0.1 KB) [[attachment:BurrowsWheeler_gen.py]]
- [get | view] (2012-04-24 23:39:21, 0.1 KB) [[attachment:VyshlovA_mail(part).py]]
- [get | view] (2012-04-24 20:39:01, 0.3 KB) [[attachment:ray_matan.py]]
You are not allowed to attach a file to this page.