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: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 21:510383,695,574373,538,0001,004,0002,113,536expected "976813 ", got "s131 1226 A1208/1209 B1197/1199 C1198/1198 D1202/1202 E1204/1204 F1199/1198 G1196/1196 H1214/1200 I1197/1197 J1209/1209 "
2Oct 1, 2026 21:510383,813,660374,239,00002,113,536expected "975532 ", got "s126 1225 A1206/1206 B1197/1198 C1199/1200 D1202/1203 E1204/1204 F1196/1196 G1197/1197 H1194/1194 I1198/1197 J1205/1205 "
3Oct 1, 2026 21:510384,892,526375,894,00002,113,536expected "977674 ", got "s122 1233 A1215/1215 B1201/1201 C1204/1204 D1206/1206 E1208/1208 F1203/1203 G1200/1201 H1198/1198 I1201/1201 J1215/1214 "