library_checker/number_theory/enumerate_quotients.rs
1use competitive::algorithm::FloorQuotientIndex;
2use competitive::prelude::*;
3
4#[verify::library_checker("enumerate_quotients")]
5pub fn enumerate_quotients(reader: impl Read, writer: impl Write) {
6 prepare_io!(reader, writer);
7 sc!(n);
8 let qi = FloorQuotientIndex::new(n);
9 pp!(qi.len(); @it qi.values());
10}