GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — hackerrank-python/sets/no-idea.py at master · anishLearnsToCode/hackerrank-python Expand file tree/ Copy pathno-idea.pyMore file actions 14 lines (11 loc) · 288 Bytes / Copy pathno-idea.pyFile metadata and controls14 lines (11 loc) · 288 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 n, m = map(int, input().split()) array = list(map(int, input().split())) A = set(map(int, input().split())) B = set(map(int, input().split())) happiness = 0 for element in array: if element in A: happiness += 1 elif element in B: happiness -= 1 print(happiness) |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |