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:06Karthik 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:060296,571,315287,515,00002,113,536expected "977682 ", got "s131 1253 A1237/1238 B1180/1181 C1278/1278 D1312/1312 E1550/1550 F1311/1311 G1237/1238 "
2Oct 1, 2026 23:060298,813,468288,663,00002,113,536expected "975604 ", got "s121 1258 A1241/1241 B1181/1181 C1285/1285 D1323/1323 E1550/1553 F1321/1321 G1239/1240 "
3Oct 1, 2026 23:060295,912,854286,917,00002,113,536expected "977928 ", got "s122 1256 A1236/1236 B1178/1178 C1270/1270 D1309/1309 E1547/1548 F1311/1311 G1236/1236 "