Skip to content

Commit

Permalink
Merge pull request #2 from BuncyShaddai/master
Browse files Browse the repository at this point in the history
Solutions in Python Language were added
  • Loading branch information
MaheshChandraDuddu authored Oct 14, 2019
2 parents 668a8a6 + 118abe7 commit 64a669d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
17 changes: 17 additions & 0 deletions AUG19B/chefdil.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/python3
try:
t = (int)(input())
except:
quit()
while( t > 0 ):
cards = input()
ones = 0
zeros = 0
for c in cards:
if ( c == '0' ) : zeros = zeros + 1
else : ones = ones + 1
if ( ones % 2 == 0 ):
print("LOSE")
else:
print("WIN")
t = t - 1
16 changes: 16 additions & 0 deletions AUG19B/dstapls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/python3

try:
t = (int)(input())
except:
quit()
while( t > 0 ):
try:
n, k = map(int, input().split())
except:
quit()
if ( n % ( k * k ) == 0 ):
print("NO")
else:
print("YES")
t = t - 1

0 comments on commit 64a669d

Please sign in to comment.