staticint capacity = 2; staticint first = 1; staticint last = 2;
staticint test(int i1, int i2, int i3, int i4, int i5, int i6) { finalint result; if (last >= first) {
result = last - first;
} else {
result = last - first + capacity;
} return result;
}
publicstaticvoid main(String[] args) { for (int i = 0; i < 11000; i++) {
last = (i & 1) << 1; // 0 or 2 int k = test(1, 2, 3, 4, 5, 6); if (k != 1) {
System.out.println("FAILED: " + k + " != 1");
System.exit(97);
}
}
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-06-10)
¤
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.