diff options
Diffstat (limited to 'progs/a919.py')
-rw-r--r-- | progs/a919.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/a919.py b/progs/a919.py new file mode 100644 index 0000000..73e1240 --- /dev/null +++ b/progs/a919.py @@ -0,0 +1,7 @@ +def find_Odd_Pair(A,N) :
+ oddPair = 0
+ for i in range(0,N) :
+ for j in range(i+1,N) :
+ if ((A[i] ^ A[j]) % 2 != 0):
+ oddPair+=1
+ return oddPair
\ No newline at end of file |