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:53Karthik 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:530388,277,460379,287,00002,113,536expected "977110 ", got "s135 1215 A1199/1199 B1207/1207 C1214/1214 D1214/1214 E1210/1210 F1212/1212 G1213/1213 H1236/1236 I1243/1242 J1224/1224 "
2Oct 1, 2026 21:530387,438,050378,387,00002,113,536expected "978180 ", got "s122 1213 A1197/1197 B1204/1204 C1208/1208 D1210/1215 E1207/1207 F1209/1210 G1211/1211 H1233/1232 I1238/1238 J1222/1222 "
3Oct 1, 2026 21:530389,973,567380,925,00002,113,536expected "975240 ", got "s122 1220 A1202/1202 B1214/1214 C1216/1216 D1217/1218 E1214/1214 F1219/1219 G1220/1220 H1238/1238 I1248/1247 J1235/1235 "