0
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?

More than 1 year has passed since last update.

ABC307 - A - Weekly Records

Posted at

問題

考察

1週間ごとの歩いた歩数を集計してくださいという問題です。for文を使って7日ごとに集計を行っていくのがいいと思います。$i$週目の$j$日目という2つの変数を2重ループで回すと集計しやすいです。配列$A$には、$A_{i×7+j}$で任意の日にちにアクセスできます。

※問題では1-indexedで表記していますが、C++の都合上、0-indexedで考察を書いてます。

提出コード(コンテスト後)

ご不明点などがあれば教えていただけると幸いです。

0
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
0
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?