why using set() in python is not accepted?


  • 0
    C

    simple solution using set(). I think set.pop() is randomness

        def __init__(self):
            """
            Initialize your data structure here.
            """
            self.dataset = set()
    
        def insert(self, val):
            """
            Inserts a value to the set. Returns true if the set did not already contain the specified element.
            :type val: int
            :rtype: bool
            """
            if val in self.dataset:
                return False
            else:
                self.dataset.add(val)
                return True
                
        def remove(self, val):
            """
            Removes a value from the set. Returns true if the set contained the specified element.
            :type val: int
            :rtype: bool
            """
            if val not in self.dataset:
                return False
            else:
                self.dataset.remove(val)
                return True
            
        def getRandom(self):
            """
            Get a random element from the set.
            :rtype: int
            """
            temp = self.dataset.pop()
            self.dataset.add(temp)
            return temp
    

  • 0
    S

    @cslns If I am not mistaken, Python's set uses python dictionary as underlying data structure. Python dictionary is implemented using a hash table. The function set.pop() simply removes the first element from the hash table and it can only pop the values inserted to the hash table slot mapped with the hash function. So, set.pop() is sort of deterministic in terms of the hash function and the source value.


  • 0

    @Samuri said in why using set() in python is not accepted?:

    @cslns If I am not mistaken, Python's set uses python dictionary as underlying data structure. Python dictionary is implemented using a hash table. The function set.pop() simply removes the first element from the hash table and it can only pop the values inserted to the hash table slot mapped with the hash function. So, set.pop() is sort of deterministic in terms of the hash function and the source value.

    My solution is the same as @cslns . Actually, getRandom iterates the data in set. Here's the output of the last testcase.

    [null,true,true,true,true,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30,1,10,20,30]
    

    I don't understand why this failed. Obviously , it is same probability.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.