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:54Karthik 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:540383,519,954374,536,00002,113,536expected "975967 ", got "s133 1214 A1196/1196 B1197/1197 C1196/1196 D1197/1197 E1196/1196 F1197/1202 G1193/1194 H1218/1218 I1214/1214 J1205/1205 "
2Oct 1, 2026 21:540384,058,602375,105,00002,113,536expected "977316 ", got "s122 1218 A1198/1198 B1200/1200 C1198/1198 D1199/1200 E1198/1198 F1200/1200 G1195/1195 H1219/1218 I1215/1215 J1208/1208 "
3Oct 1, 2026 21:540384,668,977375,641,00002,113,536expected "975521 ", got "s121 1217 A1199/1199 B1201/1201 C1199/1199 D1201/1201 E1199/1199 F1202/1202 G1197/1197 H1220/1220 I1218/1218 J1211/1210 "