TPK algorithm: Difference between revisions

Content deleted Content added
Ricvelozo (talk | contribs)
Ricvelozo (talk | contribs)
 
Line 105:
 
<syntaxhighlight lang="Rust" line>
use std::{io, iter::zip};
 
fn f(t: f64) -> Option<f64> {
Line 114:
fn main() {
let mut a = [0f64; 11];
for (t, input) in iter::zip(&mut a, io::stdin().lines()) {
*t = input.unwrap().parse().unwrap();
}