1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

競プロ日記#25/04/27

Posted at

アルゴ式-九九の表 (1)

  • iを固定して条件を満たすjの範囲をiごとに探索していく。
// 表の列を全探索
long long count = 0;
for (int i=0; i<N; i++) {
count += min(N, K/(i+1));
}

アルゴ式-九九の表 (2)

  • ↑の応用

AtCoder

ABC158_B-Count Balls

  • long long型で取らないとREになる可能性があり
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?