greateric's blog

By greateric, history, 3 months ago, In English

This is the full raw recording of me virtualing the round this morning. Unfortunately I couldn't get OBS to get output my camera so I couldn't show what I was writing on my paper and it might not be as educational as I would have hoped. But maybe this will help you if you are interested in seeing how someone else thinks through a contest. Or if you're here for keyboard ASMR that's cool too.

Also for the haters. Unlike a certain other person you may know, I actually can deliver. (And not get stuck on C)

https://www.youtube.com/watch?v=B7daqwgbCqM



Also can we stop hating on comments? I swear to god if I get one more person calling me a cheater because of that. I feel like I need to add a note to my template

// This code contains comments. They were hand-inserted with love and not a result of AI-generated code.

Also also can someone please tell me how to make the chapters work? Like I think I did them correctly but they are not showing up

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

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

Man but don't you think having the autocomplete gives you an advantage in contests? Because it's much cleaner and bug-free to code that way, at times it can even complete the solution for you

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

    https://codeforces.me/blog/entry/133941 "Code Completion Tools (e.g., Copilot): AI-based code completion systems may be used, but only for syntax and minor coding suggestions. Using them to generate the core logic or algorithms for solving problems is not permitted."

    I don't think it's that big of a deal, it just makes it easier to code, and I'm not autocompleting entire algorithms or anything. I don't think it's against the letter or spirit of the rule unless I get told otherwise by an admin.

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

    Yeah it's allowed on CF. It's banned in other contests like AtCoder (rules) and USACO (rules).

    I opt not to use it anywhere for competitive programming, but that's more of a personal choice. But yeah, there are variations in rules for different kinds of contests.

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

      arvindr orz

      Yeah USACO doesn't let you use it which is a little unfortunate but it makes sense for IOI style (no templates or referencing anything online either, compared to codeforces being "open google"). I'm just lazy so I like to use it lol

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

        Maybe what I'm about to say is a bit unrelated, but I do think that not allowing Tab+Autocomplete is beneficial for people who are relatively new to competitive programming.

        Around last year, I tried using Windsurf and wrote something like

        struct segtree { // range add, point query
        
        }
        

        (this is usually how I start writing a segtree from scratch, I write a comment to tell myself what I'm about to write).

        and it was able to Tab + Autocomplete the functions, which made me realize that it's actually a bit powerful. I do think that someone who is just learning competitive programming should be able to write basic standard things from scratch (such as finding prime factorizations in $$$O(\sqrt N)$$$ time, running BFS / DFS / floodfill / dijkstra), and Tab + Autocomplete might allow some amount of shortcuts to inhibit learning.

        But yeah, I agree that if the rules in a contest allow using it, then it totally makes sense to do so.

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

          Arvindr orz x2

          Yeah I think that’s a good point. I think it can be a double edged sword, like sometimes it can show you an example of how to do X algorithm or how to use X library, but also could be a crutch like you said

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

That was cool to look at, definitely legit. I was wondering, do you use scratchpaper while solving or just do most work in ur head

Edit: just saw u said u used scratchpaper, nvm. If you do want to show ur work theres ways to cast an ipad to OBS

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

    lowk i do not like the digital pencil type stuff. doc cam would be fun but I am not rich enough to afford one lol

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

      you can use a simple setup if you are on windows using obs and connecting your phone to your laptop or pc. then you can im sure can somehow connect it using a tripod, dont have a tripod? no problem, just use something tall, like a stack of books and put something heavy on top of the phone so it doesnt fall off

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

Also also can someone please tell me how to make the chapters work?

Have you unlocked advanced features? Manual youtube chapters need this, and to get advanced features I think you need some sort of identity verification.

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

can I please stop catching strays lmao

You should hate on that juicetin.kim guy instead I heard he loves kicking puppies

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

Bro your variable naming sense is ... quite engineering. Had you not provided your screenshot I'd also say you're a cheater.

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

that's beautiful code, only the use of macros for FOR loops makes it ugly