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:
- a = 0
- b = 4
- for i in range(2020):
- ** a += b**
- ** b += 1**
- print(a) # 2047270 → 22 → 4
Just in 6 lines of code.