summaryrefslogtreecommitdiff
path: root/2011/1a/a/a.py
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2011-05-21 04:26:06 +0300
committerYuval Adam <yuv.adm@gmail.com>2011-05-21 04:26:06 +0300
commitef0c9b37a1004de6d0394c9a659704d745543e63 (patch)
tree084981e63460829a5e67525d7b57f59585672601 /2011/1a/a/a.py
parent4298c86f73fe6327f461433538fadffa1d470be7 (diff)
failed small attempt
Diffstat (limited to '2011/1a/a/a.py')
-rw-r--r--2011/1a/a/a.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/2011/1a/a/a.py b/2011/1a/a/a.py
index 7bc039a..f69b4c0 100644
--- a/2011/1a/a/a.py
+++ b/2011/1a/a/a.py
@@ -1,13 +1,15 @@
-f = open('1.in', 'r')
-o = open('1.out', 'w')
+f = open('2.in', 'r')
+o = open('2.out', 'w')
T = int(f.readline().strip())
for t in xrange(T):
- (n, m, o) = map(int, f.readline().strip().split(' '))
- l = f.readline().strip()
+ (N, PD, PG) = map(int, f.readline().strip().split(' '))
- res = str(n) + str(m) + str(o) + l
+ wt = N * PD / 100
+ wy = N * PG / 100
+
+ res = 'Possible' if wt >= wy else 'Broken'
s = "Case #%d: %s\n" % (t+1, res)
print s
- #o.write(s)
+ o.write(s)