teochaban's blog

By teochaban, history, 5 years ago, In English

On this problem I was trying to debug my code. Since it was an interactive problem I wanted to check if I was making less than the total amount of legal queries, and for that I checked if the number of queries was >= a number a little less than the limit and used an assert(false) in case I had too many queries. I kept getting WA. After further investigation I noticed that this WA was actually supposed to be a RE, so I changed the assert(false) for a while(1) and got a TLE. Codes: here and here (code not rly relevant, if you can't see it). Why did I not get a RE with the assert and got a wrong answer instead? The problem being interactive changes anything in this case?

Full text and comments »

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

By teochaban, history, 6 years ago, In English

University of Sao Paulo (Campus Sao Carlos) holds a qualifier contest every year to select participants that will represent our university on the ACM-ICPC Brazilian Sub Regionals.

This year, the contest will take place on August 19th at 14:00 BRT. The contest is public and everyone is welcome to participate on Codeforces Gym.

This year problem setters are bimaoe, danft, ffao, LaercioJr, Seku, tomasf, and me (teochaban). We would like to thank joaogui1, andre_smaira and overnite.runner for helping us out with testing and reviewing.

The problem set is supposed to keep both starters and veterans entertained, but it's probably too easy for grandmasters. It was designed for solo participants.

Here are our contests from past years:

Full text and comments »

Announcement of 2018 USP-ICMC
  • Vote: I like it
  • +95
  • Vote: I do not like it