Skip to content

Commit

Permalink
Fixed comma extension tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
letitz committed Sep 27, 2014
1 parent 3ab1014 commit 96a79e1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 0 additions & 16 deletions halloween_party/halloween_party,py

This file was deleted.

16 changes: 16 additions & 0 deletions halloween_party/halloween_party.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/python3

# https://www.hackerrank.com/challenges/halloween-party

import sys

def max_pieces(n):
return (n // 2) * ((n+1) // 2)

def main():
T = int(sys.stdin.readline())
for _ in range(T):
print(max_pieces(int(sys.stdin.readline())))

if __name__ == '__main__':
main()

0 comments on commit 96a79e1

Please sign in to comment.