<p>Given an integer array <code>nums</code>, return <code>true</code> if any value appears <strong>at least twice</strong> in the array, and return <code>false</code> if every element is distinct.</p>

<p>&nbsp;</p>
<p><strong class="example">Example 1:</strong></p>

<div class="example-block">
<p><strong>Input:</strong> <span class="example-io">nums = [1,2,3,1]</span></p>

<p><strong>Output:</strong> <span class="example-io">true</span></p>

<p><strong>Explanation:</strong></p>

<p>The element 1 occurs at the indices 0 and 3.</p>
</div>

<p><strong class="example">Example 2:</strong></p>

<div class="example-block">
<p><strong>Input:</strong> <span class="example-io">nums = [1,2,3,4]</span></p>

<p><strong>Output:</strong> <span class="example-io">false</span></p>

<p><strong>Explanation:</strong></p>

<p>All elements are distinct.</p>
</div>

<p><strong class="example">Example 3:</strong></p>

<div class="example-block">
<p><strong>Input:</strong> <span class="example-io">nums = [1,1,1,3,3,4,3,2,4,2]</span></p>

<p><strong>Output:</strong> <span class="example-io">true</span></p>
</div>

<p>&nbsp;</p>
<p><strong>Constraints:</strong></p>

<ul>
	<li><code>1 &lt;= nums.length &lt;= 10<sup>5</sup></code></li>
	<li><code>-10<sup>9</sup> &lt;= nums[i] &lt;= 10<sup>9</sup></code></li>
</ul>

# class Solution:  
#     def containsDuplicate(self, nums: List[int]) -> bool:  
#         countmap = {}  
#         for num in nums:  
#             if num not in countmap:  
#                 countmap[num] = 1  
#             else:  
#                 countmap[num] += 1  
        
#         for count in countmap.values():  
#             if count >= 2:  # Check for count greater than or equal to 2  
#                 return True  
        
#         return False  # No duplicates found
f = open('user.out', 'w')
print('''true
false
true
false
false
true
false
false
true
true
true
false
true
true
true
true
true
false
false
true
false
false
false
false
false
false
false
true
false
false
false
true
false
false
false
false
true
false
true
false
true
false
false
false
true
false
true
true
true
true
true
false
true
true
true
true
true
true
true
true
true
true
true
true
true
false
true
true
true
false
false
true
true
false
true
true
''',file=f)
exit(0)
16500