Basecamp
    Home
    Problems
    Contests
    Courses
    Rating
    Posts
    Store
    Discord
MathModel
Sign in
Hasan Saleh
MathModel
Candidate
Palestine
Palestine
Joined Jan 24, 2025
Achievements (1)
Problem Solver
OverviewRatingAchievementsPosts

Rating
1658
Problems161
Submissions215
Dec
2020
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2021
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2022
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2023
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2024
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct

Rating evolution

MathModel has joined contest Educational Round #45 hours ago
MathModel solved problem Kaosar And Game (#12261) on first attempt11 hours ago
MathModel solved problem Kaosar And Diagonals (#12260) on first attempt11 hours ago
MathModel solved problem Min Sum Construction (#12262) on first attempt11 hours ago
MathModel solved problem Collatz Beauty (#12259) on first attempt11 hours ago
MathModel solved problem Kaosar and Triples (#12263) on first attempt12 hours ago
MathModel has joined contest Weekend Practice #31 day ago
MathModel solved problem Alphabetic Graph (#12258) on first attempt7 days ago
MathModel solved problem Hard Arithemetic (#12257) on first attempt7 days ago
MathModel solved problem Permutation of Subarrays and Queries (#12256) on first attempt7 days ago
MathModel solved problem Easy Array Counting (#12254) on first attempt7 days ago
MathModel solved problem Close Combat (#12255) on first attempt7 days ago
MathModel left a comment in discussion Count Transformations (#12250)8 days ago

MaxymDvali_2012

We use choices[i] to represent the choices for digit i , let's consider digit-by-digit

0 : we only can have it as 0 so we've only single choice

1 : we can multiply by 2 three times then we've {1,2,4,8} which means four choices.

2 : we can multiply by 2 two times and divide once then we've {1,2,4,8} which means four choices.

3 : we can multiply by 2 once then {3,6} which means we've two choices

4 : we can multiply by 2 once and divide twice then we've {1,2,4,8} which means four choices.

5 : we only have it as a choice

6 : we can divide once by 2 then we've {6,3} which means two choices

7 : we only have it as a choice

8 : we can divide three times

9 : we only have it as a choice

putting it all gives

choices=[1,4,4,2,4,1,2,1,4,1]
MathModel solved problem Number of maximums (#7832) on first attempt14 days ago
MathModel has joined contest Educational Round #314 days ago
MathModel solved problem Minimum Increasing Cycle (#12253) on 2 attempt15 days ago
MathModel solved problem Tree ! (#12252) on first attempt15 days ago
MathModel solved problem PAM! (#12251) on first attempt15 days ago
MathModel solved problem Count Transformations (#12250) on first attempt15 days ago
MathModel solved problem WOOW String (#12249) on first attempt15 days ago
MathModel has joined contest Blitz Round #515 days ago
MathModel left a comment in discussion Blitz Round #415 days ago

tolikshift Thanks ! , Fixed.

MathModel left a comment in discussion Eolymp-value (#12235)18 days ago

Dyadka_Dimka Your welcome , Happy I'm helped.

MathModel left a comment in discussion Eolymp-value (#12235)19 days ago

Dyadka_Dimka

f(n,k)=(1modk+2modk+...+nmodk)

regardless of k , We're asking how many k that's f(n,k) is a multiple of k

this is equivalent to count of divisors of 1+2+3+....+n

I cannot write more because it's already covered in the editorial.

Have a nice day.

MathModel left a comment in discussion Eolymp-value (#12235)19 days ago

Dyadka_Dimka Read Statement Carefully Please