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 23:05Karthik 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 23:050380,162,628371,159,00002,113,536expected "976165 ", got "s132 1254 A1238/1238 B1178/1178 C1342/1342 D1364/1364 E1414/1419 F1290/1290 G1376/1376 H1381/1384 I1298/1298 "
2Oct 1, 2026 23:050378,695,939369,748,00002,113,536expected "975446 ", got "s121 1261 A1240/1241 B1180/1180 C1337/1337 D1345/1346 E1391/1391 F1299/1300 G1363/1364 H1375/1375 I1305/1306 "
3Oct 1, 2026 23:050377,333,918368,352,00002,113,536expected "975761 ", got "s122 1255 A1235/1235 B1179/1179 C1330/1330 D1339/1340 E1388/1388 F1292/1291 G1366/1366 H1366/1366 I1300/1299 "