-
hackerrank.com Practice>Python>Sets>No Idea!hackerrank.com 2019. 2. 6. 16:18728x90
No Idea!
Tip
- Please utilize set() to check that n integers is in set A(or B)
- Actually, the numbers(n and m) is not matter for problem
- As we can split and count each integer from input(), like below
- input().split()
- Create list from n integers
- Create set A and set B
- check each item in list is in set A or set B
Solution
728x90'hackerrank.com' 카테고리의 다른 글
hackerrank.com Practice>Python>Collections>Collections.namedtuple() (0) 2019.02.11 hackerrank.com Practice>Python>Collections>DefaultDict Tutorial (0) 2019.02.10 hackerrank.com Practice>Python>Itertools>Compress the String! (0) 2019.02.07 hackerrank.com Practice>Python>Strings>Merge the Tools! (0) 2019.02.04 hackerrank.com Practice>Python>Strings>The Minion Game (0) 2019.02.04