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 22:51Karthik 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 22:510320,667,991311,647,00002,113,536expected "976370 ", got "s123 1199 A1180/1180 B1256/1256 C1256/1257 D1263/1263 E1263/1264 F1258/1258 G1270/1270 H1180/1180 "
2Oct 1, 2026 22:510319,802,134310,805,00002,113,536expected "975494 ", got "s120 1195 A1178/1178 B1251/1252 C1252/1252 D1263/1263 E1264/1264 F1253/1253 G1263/1263 H1177/1177 "
3Oct 1, 2026 22:510321,093,669312,127,00002,113,536expected "977325 ", got "s124 1201 A1181/1181 B1257/1257 C1257/1257 D1269/1269 E1271/1271 F1258/1259 G1269/1269 H1181/1181 "