summaryrefslogtreecommitdiff
path: root/progs/a529.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a529.py')
-rw-r--r--progs/a529.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/a529.py b/progs/a529.py
new file mode 100644
index 0000000..b4acdbc
--- /dev/null
+++ b/progs/a529.py
@@ -0,0 +1,7 @@
+def find_even_Pair(A,N):
+ evenPair = 0
+ for i in range(0,N):
+ for j in range(i+1,N):
+ if ((A[i] ^ A[j]) % 2 == 0):
+ evenPair+=1
+ return evenPair; \ No newline at end of file