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

Rating evolution

12月
2020
2月
3月
4月
5月
6月
7月
8月
9月
10月
11月
12月
2021
2月
3月
4月
5月
6月
7月
8月
9月
10月
11月
12月
2022
2月
3月
4月
5月
6月
7月
8月
9月
10月
11月
12月
2023
2月
3月
4月
5月
6月
7月
8月
9月
10月
11月
12月
2024
2月
3月
4月
5月
6月
7月
8月
9月
10月
11月
12月
2025
2月
3月
4月
5月
6月
7月
8月
9月
10月
MathModel has joined contest Educational Round #41 日前
MathModel solved problem Kaosar And Game (#12261) on first attempt1 日前
MathModel solved problem Kaosar And Diagonals (#12260) on first attempt1 日前
MathModel solved problem Min Sum Construction (#12262) on first attempt1 日前
MathModel solved problem Collatz Beauty (#12259) on first attempt1 日前
MathModel solved problem Kaosar and Triples (#12263) on first attempt1 日前
MathModel has joined contest Weekend Practice #32 日前
MathModel solved problem Alphabetic Graph (#12258) on first attempt8 日前
MathModel solved problem Hard Arithemetic (#12257) on first attempt8 日前
MathModel solved problem Permutation of Subarrays and Queries (#12256) on first attempt8 日前
MathModel solved problem Easy Array Counting (#12254) on first attempt8 日前
MathModel solved problem Close Combat (#12255) on first attempt8 日前
MathModel left a comment in discussion Count Transformations (#12250)9 日前

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 attempt15 日前
MathModel has joined contest Educational Round #315 日前
MathModel solved problem Minimum Increasing Cycle (#12253) on 2 attempt15 日前
MathModel solved problem Tree ! (#12252) on first attempt15 日前
MathModel solved problem PAM! (#12251) on first attempt15 日前
MathModel solved problem Count Transformations (#12250) on first attempt15 日前
MathModel solved problem WOOW String (#12249) on first attempt15 日前
MathModel has joined contest Blitz Round #516 日前
MathModel left a comment in discussion Blitz Round #416 日前

tolikshift Thanks ! , Fixed.

MathModel left a comment in discussion Eolymp-value (#12235)19 日前

Dyadka_Dimka Your welcome , Happy I'm helped.

MathModel left a comment in discussion Eolymp-value (#12235)19 日前

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)20 日前

Dyadka_Dimka Read Statement Carefully Please