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:42Karthik 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:420394,397,424385,035,00002,113,536expected "976900 ", got "s121 1204 A1185/1185 B1191/1191 C1258/1258 D1366/1391 E1249/1249 F1266/1265 G1244/1243 H1185/1185 I1211/1211 J1199/1190 "
2Oct 1, 2026 21:420394,076,060385,049,00002,113,536expected "976944 ", got "s123 1205 A1187/1187 B1193/1194 C1260/1260 D1368/1369 E1253/1253 F1268/1267 G1248/1248 H1188/1187 I1213/1214 J1188/1188 "
3Oct 1, 2026 21:420395,570,174386,491,00002,113,536expected "976843 ", got "s135 1207 A1186/1188 B1193/1193 C1260/1261 D1401/1415 E1251/1251 F1266/1266 G1245/1246 H1187/1188 I1214/1214 J1189/1188 "