diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2011-05-21 18:49:31 +0300 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2011-05-21 18:49:31 +0300 |
| commit | be3f71691cab09fc6b3d752bfc8c3db9f38c5cbc (patch) | |
| tree | 5344c5b78de9b4a928db0c9ddca3d78022a56fea /2011/1b/a/a.py | |
| parent | e6e15eaa942efd841215b78ed9dab9aed147ebec (diff) | |
added 2011 1b
Diffstat (limited to '2011/1b/a/a.py')
| -rw-r--r-- | 2011/1b/a/a.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/2011/1b/a/a.py b/2011/1b/a/a.py new file mode 100644 index 0000000..806eb95 --- /dev/null +++ b/2011/1b/a/a.py @@ -0,0 +1,17 @@ +f = open('1.in', 'r') +o = open('1.out', 'w') + +T = int(f.readline().strip()) + +for t in xrange(T): + (N, PD, PG) = map(int, f.readline().strip().split(' ')) + + wt = (N * PD) + wy = (N * PG) + + print (wt, wy) + + res = 'Possible' if PD >= PG else 'Broken' + s = "Case #%d: %s\n" % (t+1, res) + print s + o.write(s) |
