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 20:56Karthik 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 20:570540,334,347531,198,00002,113,536expected "977989 ", got "f1254 A1226/1227 B1210/1211 C1213/1213 D1378/1379 E1490/1491 F1361/1361 G1307/1307 H1263/1264 I1226/1226 J1232/1232 "
2Oct 1, 2026 20:570538,814,570529,797,00002,113,536expected "977724 ", got "f1244 A1223/1224 B1208/1210 C1209/1210 D1384/1385 E1484/1485 F1337/1338 G1304/1305 H1261/1262 I1224/1225 J1230/1231 "
3Oct 1, 2026 20:570537,349,531528,145,00002,113,536expected "978078 ", got "f1239 A1221/1222 B1207/1208 C1207/1208 D1355/1356 E1480/1482 F1347/1348 G1302/1302 H1259/1260 I1221/1222 J1228/1229 "