Commits

elbaschid committed cec2b6e

added templates for codeeval

  • Participants

Comments (0)

Files changed (2)

templates/input.txt

Empty file added.

templates/sample.py

+#! /usr/bin/env python
+
+import sys
+from optparse import OptionParser
+
+def main():
+
+    parser = OptionParser('%s testcase.txt' % __file__)
+    options, args = parser.parse_args()
+
+    if len(args) < 1:
+        parser.error("No input file provided.")
+
+    test_cases = open(sys.argv[1], 'r')
+
+    for test in test_cases:
+        test = test.strip()
+
+        if test != '':
+            pass
+
+    test_cases.close()
+
+
+if __name__ == "__main__":
+    main()
+
+