|
|
back to boardWA #8 time limit exceeded Does any one have a faster code of python than this p=int(input()) plist=set() for i in range (p): a=int(input()) plist.add(a) s=int(input()) slist=[] count=0 for i in range (s): a=int(input()) if a in plist: count+=1 print (count) Re: WA #8 time limit exceeded Posted by naugrim 21 Jan 2015 03:54 I've no idea how to make it faster. Got stuck myself. |
|
|