blob: 6ee4f3c8878a232d43babd94c1683b1b398002a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/usr/bin/env python2
import sys
while True:
lfrac = sys.stdin.readline()
if not lfrac:
break
monolingual = sys.stdin.readline()
ul_only = sys.stdin.readline()
print lfrac, monolingual, ul_only,
p = 0
r = 0
f = 0
for i in range(10):
lp = float(sys.stdin.readline().split()[1])
lr = float(sys.stdin.readline().split()[1])
lf = float(sys.stdin.readline().split()[1])
p += lp
r += lr
f += lf
p /= 10
r /= 10
f /= 10
print 'p:', p
print 'r:', r
print 'f:', f
|