Browse Source

...

master^2
nwerc-082 3 years ago
commit
d680398c96
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      C.py

+ 7
- 0
C.py View File

@@ -0,0 +1,7 @@
from __future__ import print_function
import sys
x, y = map(float, sys.stdin.readline().split())
n = float(sys.stdin.readline())
for l,u,f in ( map(float, line.split()) for line in sys.stdin ):
y -= (u-l)*(1-f)
print(x / y)

Loading…
Cancel
Save