From e7a1e0168eb41cc2ae20a31b3bf9b149a27af7b1 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Fri, 13 May 2011 11:41:16 +0300 Subject: updated template --- templates/template.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'templates/template.py') diff --git a/templates/template.py b/templates/template.py index d54243d..7bc039a 100644 --- a/templates/template.py +++ b/templates/template.py @@ -1,9 +1,13 @@ f = open('1.in', 'r') o = open('1.out', 'w') -t = int(f.readline().strip()) +T = int(f.readline().strip()) -for i in xrange(t): - (n, k) = list(map(int, f.readline().strip().split(' '))) +for t in xrange(T): + (n, m, o) = map(int, f.readline().strip().split(' ')) + l = f.readline().strip() - o.write(s) + res = str(n) + str(m) + str(o) + l + s = "Case #%d: %s\n" % (t+1, res) + print s + #o.write(s) -- cgit v1.3.1