2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2018-10-03 10:47:23 -05:00
|
|
|
|
|
|
|
fn from_stdin(min: u64) -> Vec<u64> {
|
|
|
|
use std::io::BufRead;
|
|
|
|
|
|
|
|
let stdin = std::io::stdin();
|
|
|
|
let stdin = stdin.lock();
|
|
|
|
|
|
|
|
stdin.lines()
|
|
|
|
.map(Result::unwrap)
|
|
|
|
.map(|val| val.parse())
|
|
|
|
.map(Result::unwrap)
|
|
|
|
.filter(|val| *val >= min)
|
|
|
|
.collect()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|