Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Viktor Schelochkov
mat = 0; fiz = 0; inf = 0; iters = readline(); for (i = 0; i < iters; i++){ str = readline(); a = str.split(" ")[2]; b = str.split(" ")[3]; c = str.split(" ")[4]; mat += Number(a); fiz += Number(b); inf += Number(c); } srmat = mat / iters; srfiz = fiz / iters; srinf = inf / iters; print(srmat+" "+srfiz+" "+srinf)
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Futbal
First Non Repeating Character
codeing
JSON magic
My first app
Set(), union, intersection, difference
Loops
ComposeWordsGrid
on_off
Time it has been since Tuesday, January 1st, 2019
Please log in to post a comment.