Count uint8 Sergey Svistunov

Count the number of bytes equal to 127 in a binary stream as fast as possible.

Input: 250 000 000 uint8 values in binary on STDIN.

Output: The count of elements equal to 127, printed as a decimal string.

Back to listOct 1, 2026 21:04Karthik ReddyKarthik ReddyError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 1, 2026 21:040562,165,473553,080,00002,113,536expected "976030 ", got "s136 1217 A1200/1201 B1267/1267 C1480/1483 D1596/1596 E1603/1603 F1532/1532 G1496/1496 H1425/1424 I1240/1240 J2040/2040 K1400/1400 L1667/1667 "
2Oct 1, 2026 21:040558,740,830549,623,00002,113,536expected "976153 ", got "s122 1224 A1204/1204 B1270/1270 C1426/1426 D1598/1600 E1603/1604 F1530/1531 G1499/1499 H1372/1372 I1245/1245 J2035/2035 K1379/1379 L1668/1668 "
3Oct 1, 2026 21:040560,326,980550,012,00002,113,536expected "976657 ", got "s122 1221 A1203/1203 B1270/1278 C1428/1428 D1596/1596 E1602/1603 F1527/1527 G1499/1501 H1371/1372 I1243/1243 J2046/2045 K1384/1382 L1668/1668 "