Skip to content

Commit

Permalink
Add kattis prob crne in Python3
Browse files Browse the repository at this point in the history
  • Loading branch information
iandioch committed Oct 4, 2017
1 parent d1fc0d0 commit 7f8b56b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kattis/crne/solution.py
@@ -0,0 +1,6 @@
n = int(input())
p = n//2
q = p
if p+q < n:
p += 1
print((p+1)*(q+1))

0 comments on commit 7f8b56b

Please sign in to comment.