CodeForces Daily POTD (Problem of the Day) Tamper Monkey Script
Разница между en1 и en2, 852 символ(ов) изменены
Hi,↵

I wrote a simple 
tTamper monkey script that adds a **POTD (Problem of the Day)** button on cCodeforces on c.  ↵
C
licking it you will be given you a problem with thea rating simillar to what you are on currently,your current rating.

**Link to ds:**  ↵
- [D
ownload the script: Script (GreasyFork)](https://greasyfork.org/en/scripts/560655-cf-potd

)  ↵
- [
Git hHub rRepo](https://github.com/saitamapunches123/CF-POTD)


---↵

### 
DESIGN CHOICES:

  1) To avoid1. **Minimize API cCalls dDuring cContest all calls will bs**  ↵
   All API calls ar
e done **only when clicking "POTD" thus**, making clicking POTD a bit slowerthe button slightly slower to respond, but keeping page refresh fast thus no lag and lag-free during contest
  2) POTD are use specific that is for each user POTD will be 
s.↵

2. **User-Specific POTD**  ↵
   Each user gets a **
different as POTD**, depending on the user curr_rating↵
  3)
ir current rating (`curr_rating`).↵

3. **Rating Range**  ↵
  
 POTD will be in the range : `[curr_rating- - neg_delta*100 , curr_rating+ + pos_delta*100] where `  ↵
   - `
curr_rating` is rounded down. For e ↵
   - E
xample: iIuser's rating is **1650**, POTD can be one of **[1400, 1500, 1600, 1700, 1800]
     Please change 
**.  ↵
   - You can change the distribution by modifying the `
neg_delta` and `pos_delta` constant varias.↵

4. **Unsolved Pro
blemif you want to change distributionOnly**  
  
3) POTD will **always be an unsolved problem U**, unlike LeetcCode where POTD can be an already solved problem. As they follow a global POTD model but this is using a.  ↵
   This ensures a truly
 user -specicfic challenge.↵

5. **Regenerating
 POTD
  4) on
**  ↵
   After
 solving POTD and, clicking "POTD" again you will bethe button again givens a **new unsolved "POTD" this is done as I wantproblem**.  ↵
   This makes
 the "POTD" link  button work as both a POTD**Problem of the Day** and a **random problem Ggenerator**.

---

Lmk iIf you have any **feedback** or **feature request wis**, let me know—I’ll try to add it.↵


them!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский hermit_parth 2025-12-29 20:43:15 852
en1 Английский hermit_parth 2025-12-29 20:37:19 1428 Initial revision (published)