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:50Karthik 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:510389,604,171380,429,00002,113,536expected "977135 ", got "s131 1225 A1207/1207 B1198/1199 C1218/1218 D1208/1209 E1211/1211 F1272/1277 G1214/1213 H1230/1230 I1226/1226 J1216/1217 "
2Oct 1, 2026 21:510388,435,033378,267,0001,033,0002,113,536expected "976704 ", got "s122 1223 A1204/1205 B1197/1197 C1213/1218 D1205/1205 E1209/1209 F1259/1259 G1211/1214 H1225/1225 I1225/1224 J1214/1215 "
3Oct 1, 2026 21:510390,798,299381,896,00002,113,536expected "977481 ", got "s124 1232 A1212/1213 B1200/1200 C1221/1221 D1211/1211 E1215/1215 F1277/1279 G1222/1222 H1234/1234 I1227/1227 J1229/1229 "