0
0

AtCoder ABC351 C問題

Last updated at Posted at 2024-04-28

2024_04_28 ABC_351_C問題.JPG

2024_04_28 ABC_351_C問題 (2).JPG

普通に2**a[i]リストに追加すると処理が重くなる。2**a[i]のうち2の部分は他と変わらないので、a[i]だけ見る。
後は問題文を素直に実装してAC。

2024_04_28 ABC_351_C問題 (3).JPG

0
0
2

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