bouzuya.hatenablog.com

ぼうずやのにっき

Google Drive API を試す / PAST #16 C

bouzuya/rust-examplesGoogle Drive API を試した。

crates:google-authzcrates:reqwest で雑に認証して対応した。つなぎ目がよく分からなかったので google-authz の要求している tower::Service<http::Request<B>> を `reqwest::Client`` を wrap した newtype に実装した。


PAST #16 第16回 アルゴリズム実技検定(過去問)

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);
}

今日のコミット。