cpu.mode fastest code on the internet
01 specification

Counting Bytes

Input is a 250 MiB byte array. Return the number of bytes equal to 127 by printing the count to stdout.

Example: if the input bytes are [127, 0, 127, 255], the correct output is 2.

minimal Rust solution
use std::io::Read;

fn main() {
    let mut input = Vec::new();
    std::io::stdin().read_to_end(&mut input).unwrap();
    let count = input.iter().filter(|&&byte| byte == 127).count();
    print!("{count}");
}
02 scope / runtime over time
Lang
System
double-click zooms out
03 leaderboard
Leaderboard · top 13 click any row to expand · open multiple to compare
Rank User Lang Best Position in CDF Analysis When
04 submit
Your Solution
Single File
Sign in to submit.