identificationdivision. program-id. apt-p81. * aus Apt-Olderog - Programmverifikation author. Jens. date-written. 5.1.2009. date-compiled. datadivision. working-storagesection.
77 i pic 9(4).
77 j pic 9(4).
77 oddtop pic 9(4).
77 eventop pic 9(4). linkagesection.
77 n pic 9(4).
77 a pic 9(4) occurs 100.
77 k pic 9(4). proceduredivisionusing n a returning k. move 1 to i move 2 to j add 1 to n giving oddtop add 1 to n giving eventop perform S1 perform S2 movefunction min(oddtop,eventop) to k stoprun.
S1. performuntil i>=oddtop if a(i)>0 thenmove i to oddtop elseadd 2 to i end-if end-perform.
S2. performuntil j>=eventop if a(j)>0 thenmove j to eventop elseadd 2 to j end-if end-perform. end-program apt-p81.
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.