19 lines
388 B
Python
Executable file
19 lines
388 B
Python
Executable file
#!/usr/bin/env python3
|
|
# vim: set ts=4 sw=4 et tw=80:
|
|
|
|
import sys
|
|
|
|
def contains_two_equal(A):
|
|
i = 0
|
|
while i < len(A) - 1:
|
|
j = i + 1
|
|
while j < len(A):
|
|
if A[i] == A[j]:
|
|
return True
|
|
j = j + 1
|
|
i = i + 1
|
|
return False
|
|
|
|
if __name__ == "__main__":
|
|
A = [int(x) for x in sys.argv[1:]]
|
|
print(contains_two_equal(A))
|