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:05Karthik 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:050337,856,070328,862,00002,113,536expected "976085 ", got "s131 1215 A1197/1209 B1254/1256 C1416/1418 D1286/1298 E1293/1294 F1541/1541 G1282/1282 H1198/1197 "
2Oct 1, 2026 22:050336,791,132326,741,0001,011,0002,113,536expected "978007 ", got "s122 1212 A1194/1194 B1251/1252 C1410/1410 D1280/1280 E1285/1285 F1554/1554 G1277/1288 H1195/1195 "
3Oct 1, 2026 22:050336,495,811327,492,00002,113,536expected "977241 ", got "s120 1216 A1198/1199 B1254/1254 C1414/1415 D1283/1284 E1290/1290 F1531/1531 G1280/1279 H1199/1198 "