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:58Karthik 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:580528,836,125519,705,00002,113,536expected "976514 ", got "s123 1258 B1210/1210 K1236/1236 L1223/1223 M1204/1204 N1343/1344 O1204/1203 P1214/1215 Q1230/1231 R1498/1498 S1252/1253 "
2Oct 1, 2026 20:580527,669,050518,539,00002,113,536expected "978006 ", got "s122 1230 B1209/1209 K1234/1237 L1221/1222 M1203/1203 N1332/1334 O1202/1201 P1213/1213 Q1232/1230 R1498/1497 S1250/1249 "
3Oct 1, 2026 20:580526,563,731517,454,00002,113,536expected "976553 ", got "s122 1228 B1207/1209 K1231/1232 L1218/1218 M1201/1201 N1327/1328 O1198/1203 P1210/1210 Q1227/1226 R1493/1495 S1249/1249 "