Skip to content

Instantly share code, notes, and snippets.

Created February 2, 2015 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/93c5843a8b7baee9b30f to your computer and use it in GitHub Desktop.
Save anonymous/93c5843a8b7baee9b30f to your computer and use it in GitHub Desktop.
Codeforces Round #290 (Div. 2) A. Fox And Snake
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# pylint: disable=C0111
# GleanStart
#9 9
# GleanEnd
def main():
n, m = map(int, raw_input().split())
a = '.' * (m - 1)
b = '#'
c = '#' * m
for x in xrange(n):
if x % 2 == 0:
print c
else:
print "{}{}".format(a, b)
a, b = b, a
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment