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 listJan 28, 2025 20:36Bohdan StorozhukBohdan StorozhukError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 28, 2025 20:3600000Error: Exit with code 2: SIGILL: illegal instruction PC=0x559bc2a0d997 m=0 sigcode=2 instruction bytes: 0x62 0xf2 0x7d 0x48 0x7a 0xc0 0xf 0x1f 0x0 0x62 0xf1 0xfe 0x48 0x6f 0xf 0x62 goroutine 1 gp=0xc0000061c0 m=0 mp=0x559bc2b54b00 [running]: countbody...stderr