Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
|
|
@ -1,10 +1,10 @@
|
|||
func avg(Array list) {
|
||||
list.len > 0 || return 0;
|
||||
list.sum / list.len;
|
||||
list.len > 0 || return 0
|
||||
list.sum / list.len
|
||||
}
|
||||
|
||||
say avg([Math.inf, Math.inf]);
|
||||
say avg([3,1,4,1,5,9]);
|
||||
say avg([1e+20, 3, 1, 4, 1, 5, 9, -1e+20]);
|
||||
say avg([10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0.11]);
|
||||
say avg([10, 20, 30, 40, 50, -100, 4.7, -1100]);
|
||||
say avg([Inf, Inf])
|
||||
say avg([3,1,4,1,5,9])
|
||||
say avg([1e+20, 3, 1, 4, 1, 5, 9, -1e+20])
|
||||
say avg([10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0.11])
|
||||
say avg([10, 20, 30, 40, 50, -100, 4.7, -1100])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue