2020-07-12から1日間の記事一覧
問題文 https://atcoder.jp/contests/aising2020/tasks/aising2020_d 問題概要 関数 $\mathit{ popcount }$ を以下のように定める. $\mathit{ popcount }( n ) := $ $n$ を 2 進数表記シたときの $1$ の個数 また,関数 $f$ を, $f( n ) := $ $n$ を $n \b…
問題文 https://atcoder.jp/contests/aising2020/tasks/aising2020_c 問題概要 関数 $f$ を,$f( n )$ が以下の 2 つの条件を満たすような整数の 3 つ組 $( x, y, z )$ の個数とします. $1 \leq x, y, z$ $x^2 + y^2 + z^2 + xy + yx + zx = n$ 正整数 $N$ …
問題文 https://atcoder.jp/contests/aising2020/tasks/aising2020_b 問題概要 $N$ 項からなる数列 ${ a_n }$ が与えられる.この数列の値の内,奇数番目にある奇数の数を求めよ. 制約 $1 \leq N, a_i \leq 100$
問題文 https://atcoder.jp/contests/aising2020/tasks/aising2020_a 問題概要 正整数 $L, R, d$ が与えられる.$L$ 以上 $R$ 以下の整数の内,$d$ の倍数の個数を求めよ. 制約 $1 \leq L \leq R \leq 100$ $1 \leq d \leq 100$