Content deleted Content added
Line 107:
use std::{io, iter::zip};
fn f(t: f64) -> Option<f64> {
let y = t.abs().sqrt() + 5.0 * t.powi(3);
(y <= 400.0).then_some(y)
}
Line 118 ⟶ 119:
a.iter().enumerate().rev().for_each(|(i, &t)| match f(t) {
Some(y) => println!("{i} {y}"),
});
}
|