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:03Karthik 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:030474,554,485465,495,00002,113,536expected "976788 ", got "s125 1282 A1270/1271 B1245/1245 C1226/1227 D1270/1270 E1421/1424 F1233/1233 G1238/1239 H1209/1208 I1215/1216 J1226/1225 K1204/1204 L1255/1254 "
2Oct 1, 2026 21:030475,323,438466,227,00002,113,536expected "975072 ", got "s122 1289 A1274/1274 B1246/1247 C1228/1228 D1272/1272 E1429/1429 F1232/1232 G1242/1241 H1211/1210 I1216/1216 J1227/1227 K1204/1209 L1255/1254 "
3Oct 1, 2026 21:030473,571,446464,455,00002,113,536expected "976355 ", got "s120 1289 A1266/1266 B1242/1242 C1223/1223 D1266/1266 E1420/1424 F1227/1227 G1236/1236 H1206/1206 I1213/1212 J1236/1227 K1202/1201 L1249/1249 "