No Idea!

Sort by

recency

|

1515 Discussions

|

  • + 0 comments
    n = list(map(int,input().split()))
    A = set(map(int,input().split()))
    B = set(map(int,input().split()))
    
    like = 0
    for i in n:
        if i in A:
            like += 1
        elif i in B:
            like -=1
    
    print(like)
    
  • + 0 comments

    Hi there! Solution with sets

    # Enter your code here. Read input from STDIN. Print output to STDOUT
    n, m = map(int, input().split()) 
    arrn = list(map(int, input().split()))
    
    # 2 disjoint sets
    At = set(map(int, input().split()))
    Bt = set(map(int, input().split()))
    happy = 0
    for i in arrn:
        if i in At:
            happy +=1 
        if i in Bt:
            happy -= 1
        else:
            happy = happy
    print(happy)
    
  • + 1 comment

    That's it! I am done with this stupid website. It is full of confusing and ambiguous descriptions! I am consuming more time to unserstand the problem than to actually solve it. The description of the problem should be clear and concise. I would not recommend anyone who was has come here to practice coding here. This website will make you feel down like I was feeling down since 2 days.

  • + 0 comments

    I got this wrong initially because this note is ambiguous:

    Note: Since and are sets, they have no repeated elements. However, the array might contain duplicate elements.

    which I read as instructing me to not count duplicate elements so I made a set from the array which gives the wrong answer.

  • + 1 comment

    This is the stupidest website I have ever visited. The main challenge with this 'medium' problem was figuring out the ABSURD way inputs are given!

    n is an array OH BUT ACTUALLY IT'S A STRING.

    Useless waste of time.