Блог пользователя IvanSimic

Автор IvanSimic, история, 2 месяца назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор IvanSimic, история, 3 месяца назад, По-английски

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?

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор IvanSimic, история, 3 месяца назад, По-английски

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];
}

Полный текст и комментарии »

  • Проголосовать: нравится
  • -17
  • Проголосовать: не нравится

Автор IvanSimic, история, 3 месяца назад, По-английски

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?

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор IvanSimic, история, 4 месяца назад, По-английски

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.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -1
  • Проголосовать: не нравится