অংকের যোগফল | Math Problem

Click here to read the complete problem statement.

Atar kahini ki kivabe thara bana bo

1 Like

4567 er por, 12345678 bar bar ase until total digits 2020 ta hoy.

[12345678] ata 2020 naki. Akta akta

only porthom 4 ta digits 4567, setar pore 12345678 bar bar until prothom 4 ta digit soho total 2020 ta digit hoy.

eikhane prottekta 1 digit, 12345678 eikhane 8 ta digit

Eta khub simple, this python code can make that more simple:

  1. a = 0
  2. b = 4
  3. for i in range(2020):
  4. ** a += b**
  5. ** b += 1**
  6. print(a) # 2047270 → 22 → 4
    Just in 6 lines of code.