Skip to content

Commit

Permalink
# Fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
harrypotter0 committed Jan 21, 2018
1 parent ba8a89c commit ad4eb51
Show file tree
Hide file tree
Showing 42 changed files with 23 additions and 2,424 deletions.
23 changes: 23 additions & 0 deletions CP/DecemberCookOff2017/prob1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
for i in xrange(input()):
n = input()
l = []
for i in xrange(n):
l.append(raw_input())
#print(l)
l2 = list(set(l))
#print(l2)
if len(l2) == 0:
print "Draw"
continue
if len(l2) == 1:
print l2[0]
continue
c1 = l.count(l2[0])
c2 = l.count(l2[1])
if c1!=c2:
if c1 > c2:
print l2[0]
else:
print l2[1]
else:
print "Draw"
Empty file.
277 changes: 0 additions & 277 deletions misc/algos-master/avl_tree/AvlTree.java

This file was deleted.

41 changes: 0 additions & 41 deletions misc/algos-master/binary_search/BinarySearch.cs

This file was deleted.

49 changes: 0 additions & 49 deletions misc/algos-master/binary_search/BinarySearch.java

This file was deleted.

Loading

0 comments on commit ad4eb51

Please sign in to comment.