2024-02-18から1日間の記事一覧

AtCoder Beginner Contest 341 D

https://atcoder.jp/contests/abc341/tasks/abc341_d包除原理+二分探索です。(first, last]とするとよいです。 // Only one of two #![allow(non_snake_case)] //////////////////// library //////////////////// fn read<T: std::str::FromStr>() -> T { let mut line = String:</t:>…