EduardoBrito's blog

By EduardoBrito, 10 months ago, In English

Hello Codeforces. Next July, 8th and 9th will take place the OII 2023.


The Ibero-American Olympiad in Informatics (OII) is an annual programming contest for young students enrolled in a high school from Ibero-American countries. Students compete on an individual basis, with up to fifteen students competing from each participating country. The competition has only one round, which happens around June-July each year, and is done online. Students are typically given four problems of algorithmic nature, which they have to solve in five hours.


The competition changed its name in 2022 to Olimpiada Iberoamericana de Informática (OII). If you want know more about this competition, please visit the official web site. Well, I just want to know which are the contestants from each participating country.

These are the ones going from Cuba:

UPD: Now you can do virtual participation here. Unfortunately it's only available in Spanish.

Full text and comments »

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

By EduardoBrito, 4 years ago, In English

Hello everyone!

I want to offer you a blog about the STL of C++11, a few weeks ago I was reading interesting information about this topic in GeeksforGeeks, and today I decided to share this information through this blog for all those interested. In advance, I want to thank all those who pay attention and interest to this blog, and thank any comments about it (positive or negative). Well, let's start now.

I will start with some array algorithms in the C++11 STL, which I did not know before and that can have a very interesting use, depending on the problem.

Array algorithms: these algorithms operate on an array and are useful in saving time during coding and hence useful in competitive programming as well.

all_of(): this function operates on whole range of array elements and can save time to run a loop to check each element one by on. It checks for a given property on every element and returns true when each element in range satisfies specified property, else returns false.

Code

any_of(): this function checks for a given range if there’s even one element satisfying a given property mentioned in function. Returns true if at least one element satisfies the property, else returns false.

Code

none_of(): this function returns true if none of element satisfies the given condition, else returns false.

Code

iota(): this function is used to assign continuous values to array.

Code

accumulate(): this function returns the sum of all the values lying in a range between [first, last) with the variable sum.

Code

Thank you to all

Full text and comments »

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