IvanSimic's blog

By IvanSimic, history, 2 months ago, In English

Here's the link for the EJOI 2026 live results, I finally found it:
SCOREBOARD

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By IvanSimic, history, 3 months ago, In English

I noticed that a lot of top programmers use unsigned types when you don't need negative numbers, but is it good practice to do so or should you avoid it?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By IvanSimic, history, 3 months ago, In English

Hello Codeforcers,

When I switched from Python to C++, I got a problem while inputting. I was stuck with it for 10 days until I realised how easy it is. I just want to write it here for others if they also get stuck here.

In competitive programming, inputting more variables in one line is quite common.

In Python, if you want to enter two variables in a single line, you have to do this:

a, b = input().split()

While in c++, you can simply use 2 cins like your inputting in 2 lines. The way you do it (in line, spaced) doesn't matter.

string a, b;
cin >> a;
cin >> b;

or

string a, b;
cin >> a >> b;

This way you can input a vector of size n in one line:

vector<int> v(n);

for(int i = 0; i < n; i++) {
    cin >> v[i];
}

Full text and comments »

  • Vote: I like it
  • -17
  • Vote: I do not like it

By IvanSimic, history, 3 months ago, In English

Hello. I am looking for someone from Croatia that might know an answer to this question.

I noticed that when you log into Evaluator, you can see and submit tasks from previous Croatian competitions.

Also, the thing that confuses me is that the latest tasks for the school, county and national competitions for both primary and secondary schools are from the year 2023.

I know the evaluator is up to date because the latest HONI tasks are uploaded, but why are the latest school tasks not?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By IvanSimic, history, 4 months ago, In English

I noticed that every programming question always haves that one same answer.

Q1: How do I learn programming?

A: Solve tasks.

Q2: How do I practice competitive programming?

A: Solve more tasks.

Q3: How do I rank up in Codeforces?

A: Solve more tasks.

Q4: How do I learn DP?

A: Solve more tasks.

Q5: Ok. How do I-

A: Solve more tasks.

Q6: Shut up. I wanted to ask-

A: Solve more tasks.

Q7: CAN YOU PLEASE SHUT-

A: Solve more tasks.

Full text and comments »

  • Vote: I like it
  • -1
  • Vote: I do not like it