erray's blog

By erray, 3 months ago, In English

In today's contest, I submitted my F2 solution, it passed pretests and I was like, that's nice, nothing can go wrong, right? But in system tests, it failed, and I thought that's possible I'm dumb, looked at tests, and it was this

I thought it was about __lg(0), which I remembered it should've returned -1 and should've been totally fine, I wanted to test it and ran it on my computer and it used pretty much no memory, I knew Codeforces and my computers compiler can act differently, I said I've seen this one and ran the test on custom test, but it used pretty much no memory too, that had to be a mistake, I checked the compiler, the code and it was all same, is custom test judger different than system test one?

I thought that was weird but it got weirder, I was using c++20 before, switched to c++17 64 and the result was same, but on c++17 32, it got accepted and ran flawlessly on custom tests too, why is this happening?

Submissions and custom test results:

Contest submission: 132875579

C++17 64 submission: 132931778

C++17 submission: 132931841

C++20 custom test:

C++17 64 custom test:

(I'm sorry for everyone who got blind because of my grammar)

Read more »

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

By erray, history, 3 months ago, In English

Codeforces blog system is great for learning new stuff, sharing knowledge and much more, but there is one problem, if you think that, the blog or the comment is nice, there is only one thing that you can do to show it, you upvote the blog and that's it, you can do nothing more. (other than adding it to your favourites which I normally do but it shows no appreciation nor anything to writer)

I read blogs all the time and I love tutorial blogs, some of them are fucking amazing, it's crystal clear, writer uses perfect English (not like mine as you can see), explains everything and you can understand the topic easily, so I scroll down and upvote the blog, add it to my favourites and think about writing an appreciation comment, but it causes necroposting most of the time, also think about 100 comments saying "Thank you for this blog".

So my idea is, let's add an award system (yes like Reddit), like you get different kinds of awards("funny" award, "useful" award...) every week, can give them to comments, blogs and show your appreciation to the writer(or show them that you think they are funny etc). I don't know if this would be hard to implement but I think it would be great for writers to see people loving their content and learning from them.

What are your opinions about this system, can a better system be added to Codeforces, this was the best I could think(or stole) but ofc there will be better ideas, I'm open to all of them and waiting for your comments.

Read more »

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

By erray, 10 months ago, In English

Hi everyone,

Our team selection test will be in a month probably and I'm bad at olympiad style competitive programming, I mean I'm bad at Codeforces style but olympiad style is the next level, I have no training and solved hardly any olympiad problems, according to my friends and blogs I have seen, problem styles can be very different, I looked up for the blogs like this and either they were old, or they had no information, so which problems should I solve, from which olympiads and assuming I get selected, how should I train for IOI ?

(Also please don't cyberbully me, I know my English is trash.)

Read more »

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

By erray, history, 21 month(s) ago, In English

I've just started to use FAR manager as IDE and I'm learning new things about it, firstly I set up my compiler and execution system, but I'm wondering some things. My settings (Tab size, auto indent, etc.) reset every time I close FAR, but my plugins are still same. Is it about my computer or about a setting which I don't know ? Also can i create my c++ files with defines on FAR ? Lastly I think pressing f12 + numbers is kind a "hard", is there a shortcut I can easily switch panels. I really need your help. (Sorry for my poor English)

UPD: Thanks for all your helps, i've solved all my problems, i'm leaving this blog for another FAR beginngers like me, also i've just learned panel switching shorcut is ctrl + o, sorry for the misunderstanding

Read more »

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