omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / bench / solutions / HumanEval_9.om
| 1 | n = long 0 |
| 2 | m = long 0 |
| 3 | for i ulong len numbers |
| 4 | v = get numbers i |
| 5 | if or eq i 0 gt v m |
| 6 | m = v |
| 7 | end |
| 8 | put res i m |
| 9 | n = add n 1 |
| 10 | end |
| 11 | ret n |
| 12 | end |