bouzuya/rust-examples で Google Drive API を試した。
crates:google-authz と crates:reqwest で雑に認証して対応した。つなぎ目がよく分からなかったので google-authz の要求している tower::Service<http::Request<B>>
を `reqwest::Client`` を wrap した newtype に実装した。
PAST #16 第16回 アルゴリズム実技検定(過去問)
- C - コンテスト
https://atcoder.jp/contests/past16-open/tasks/past202309_c
- 提出: https://atcoder.jp/contests/past16-open/submissions/48863403
- 1-8 のそれぞれの個数のうち最小の個数を求めれば良い
use proconio::{input, marker::Usize1}; fn main() { input! { n: usize, a: [Usize1; n], }; let mut count = vec![0_usize; 8]; for a_i in a { count[a_i] += 1; } let ans = count.into_iter().min().unwrap(); println!("{}", ans); }
今日のコミット。