summaryrefslogtreecommitdiff
path: root/2010_africa/b/b.py
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2011-04-15 12:57:25 +0300
committerYuval Adam <yuv.adm@gmail.com>2011-04-15 12:57:25 +0300
commit208cdbc187b3aadbd13d920d25062c1d1d57975b (patch)
treeec4eb3bdca07ee8819f147b1312a14f585949038 /2010_africa/b/b.py
parentafaadd56790f0d573f5cd716dc0af23836abe343 (diff)
moved 2010 africa dir
Diffstat (limited to '2010_africa/b/b.py')
-rw-r--r--2010_africa/b/b.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/2010_africa/b/b.py b/2010_africa/b/b.py
new file mode 100644
index 0000000..e568e18
--- /dev/null
+++ b/2010_africa/b/b.py
@@ -0,0 +1,12 @@
+from itertools import product
+
+f = open('3.in', 'r')
+o = open('3.out', 'w')
+
+n = int(f.readline().strip())
+
+for i in range(n):
+ l = f.readline().strip()
+ res = ' '.join(l.split(' ')[::-1])
+ s = "Case #%d: %s\n" % (i+1, res)
+ o.write(s)