greateric's blog

By greateric, history, 3 months ago, In English

I'm writing this while there's a tornado warning at Purdue but I refuse to die until I reach orange

Wanted to share an idea that comes up reasonably often in my opinion. Essentially, you can take advantage of some property of the minimum or maximum of an array or some other structure to construct/calculate the answer starting from there.

2129B/2130D — Difficulty: 1600

Hint 1
Hint 2
Hint 3
Answer

2067D — Difficulty: 1900

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6
Hint 7
Answer

1852B/1853D — Difficulty: 1800 on CF, 2000 on CList, definitely feels more like a 2000 to me

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6
Answer

2234E (just 2 contests ago!) — Difficulty: 2100

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6
Answer

How do I get better at spotting this?

Probably just practice! You'll start to remember to think about it more often and start seeing the patterns like this one.

  • Vote: I like it
  • +37
  • Vote: I do not like it

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by greateric (previous revision, new revision, compare).

»
3 months ago, hide # |
 
Vote: I like it +11 Vote: I do not like it

With your recent performance, you'll hit orange in no time. It was nice knowing you!

»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How long have you been doing competitive programming for ?

  • »
    »
    3 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Practicing seriously, roughly just under a year, although I have had exposure to it and comp math in middle/high school.

    • »
      »
      »
      3 months ago, hide # ^ |
       
      Vote: I like it +8 Vote: I do not like it

      roughly just under a year

      Another huge flex from greateric

      • »
        »
        »
        »
        3 months ago, hide # ^ |
         
        Vote: I like it 0 Vote: I do not like it

        noooooooooo my goat lost green :(

        tbh I just nolifed super hard. Like my entire first year of college was pretty much go to class + do homework + gym + grind cp. Mainly cuz my roommate was being kinda annnoying so I was forced to take my laptop outside and I had nothing better to do than grind Probably like averaged 3ish hours per day, maybe more on some days. I don't regret it though