Skip to content

Commit

Permalink
AC
Browse files Browse the repository at this point in the history
  • Loading branch information
darshan527 committed Dec 10, 2021
1 parent 065c2aa commit 975fd99
Show file tree
Hide file tree
Showing 6 changed files with 136 additions and 1 deletion.
Empty file.
6 changes: 5 additions & 1 deletion Equal Coins.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
for _ in range(int(input())):
x, y = map(int, input().split())
if (x + (2 * y)) % 2 == 0:
if x == 0 and y % 2 == 0:
print("Yes")
elif x == 0 and y % 2 != 0:
print("No")
elif (x + (2 * y)) % 2 == 0:
print("Yes")
else:
print("No")
2 changes: 2 additions & 0 deletions Hill Sequence.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
a = ['2', '3', '5']
print(sorted(a))
8 changes: 8 additions & 0 deletions Xor Equation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from functools import reduce
for _ in range(int(input())):
n = int(input())
a = list(map(int, input().split()))
x = 0
res = -1
while res != 0:
res = reduce(lambda x, y: x ^ y, a)
Empty file added copilot_test.py
Empty file.
121 changes: 121 additions & 0 deletions fil.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
1
A
2
AA
2
AB
2
BA
2
BB
3
BAA
3
CCB
3
CAA
3
ABA
3
CBC
3
BBC
3
CCA
3
ABB
3
ABC
3
CCC
3
ACA
3
ACB
3
BCA
3
ACC
3
BCB
3
BCC
3
AAC
3
AAB
3
AAA
3
CBB
3
BAC
3
CBA
3
BBB
3
CAC
3
BBA
3
CAB
3
BAB
4
DADA
4
DACD
4
BCCB
4
DACA
4
BCBB
4
BCBD
4
BCAB
4
BBAC
4
BCCA
4
BADD
4
DABD
4
DABC
4
DABB
4
BCDB
4
DAAD
4
DAAC
4
BCDC
4
DAAA
4
DBCC
4
DBDD
4
BBAA
4
BBBC
4
DBDB
4
DCAB
4
DCAC
4
BBCA
4
BADA
4
BBCC
4

0 comments on commit 975fd99

Please sign in to comment.