diff options
Diffstat (limited to 'progs/a32.py')
-rw-r--r-- | progs/a32.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a32.py b/progs/a32.py new file mode 100644 index 0000000..a29e4da --- /dev/null +++ b/progs/a32.py @@ -0,0 +1,6 @@ +def pair_OR_Sum(arr,n) :
+ ans = 0
+ for i in range(0,n) :
+ for j in range(i + 1,n) :
+ ans = ans + (arr[i] ^ arr[j])
+ return ans
\ No newline at end of file |