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

Автор Errichto, 2 года назад, По-английски

Target audience: newbies and pupils (rating up to 1400).
Group link: https://codeforces.com/group/yg7WhsFsAp/contests (hit "join" on the right).

Hi. Enjoy a series of 8 problem lists for beginners. The example topics are strings, arrays, math, and binary search. You are allowed to discuss anything with others, or just look up solutions online. There are also 3 exams, each recommended for a 2-hour individual virtual participation. Use the displayed order, e.g. take exam 1 after day 3. It all should take you 2 weeks of intense bootcamp-like work (or a few months if you take your time).

The problems were originally used two years ago in a Saudi Arabia camp. It's a mix of around 70 existing CF problems and 30 new original problems, mainly prepared by kostka, with some help from me and mustafabar. I asked them for permission to publish everything.

I will put hints to some problems in this blog (or in the group? not sure). Expect a few videos and/or streams for beginners too. You should also read two first chapters of Competitive Programmer's Handbook.

UPD: On Sunday evening I'm making a stream with explanations to a few hard problems: P8, P11, P18, P30, P31, P33. You can try it with hints first:

P08. Cashier
P11. Queens attack!
P18. Mountain peaks
P30. Temporarily unavailable
P31. Shuffle Hashing
P31. Shuffle Hashing, hint 2
P33. Thanos Sort
  • Проголосовать: нравится
  • +251
  • Проголосовать: не нравится

»
2 года назад, # |
  Проголосовать: нравится +19 Проголосовать: не нравится

Thanks a lot :D I'll try to solve all of them in the upcoming days

»
2 года назад, # |
  Проголосовать: нравится +7 Проголосовать: не нравится

It is really usefull

»
2 года назад, # |
Rev. 2   Проголосовать: нравится +1 Проголосовать: не нравится

Can those not in the rating range specified above not submit ?

Edit : Just checked, they can

»
2 года назад, # |
  Проголосовать: нравится -8 Проголосовать: не нравится

you mind putting some more tough questions in there .

  • »
    »
    2 года назад, # ^ |
      Проголосовать: нравится +11 Проголосовать: не нравится

    These are problems from a camp two years ago. The participants were beginners just after learning basic C++.

»
2 года назад, # |
  Проголосовать: нравится -28 Проголосовать: не нравится

Can you prepare another one for 1400 to 1600? I will be very helpful! And thanks for preparing this one. I will submit these problems.

»
2 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

There is no problem numbered P17 in day 2

»
2 года назад, # |
  Проголосовать: нравится +14 Проголосовать: не нравится

Reminds me of whenever I say I should start over competitive programming from the beginning since I am not good at the basics.

»
2 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Great , it will help us a lot.

»
2 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I have just finished the basics of java and solved 100 URI basic problems and some hackerrank easy problems. need to read the first two chapters of "Competitive Programmer's Handbook". it will take some time. I will try it.

I have a question. if someone wants to try it after 3/4 months will these problems will be there?

»
2 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

When I try to register it says "you are not allowed to enter", I am new to this platform. how to register for this.

»
2 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Any hints/tips on how to solve P48 The line problem

  • »
    »
    2 года назад, # ^ |
    Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

    The hint is in the original question already. It gave an unnecessary/redundant information which could have been omitted.

»
2 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

hey there i am trying to solve Day 2 P13 lost rectangle problem for almost a day now and ain't able to come up with a possible solution nor could find anything on the interent to help, coud anyone please help my with some possible idea . I would be realy helpful.

https://codeforces.com/group/yg7WhsFsAp/contest/355493/problem/P13

  • »
    »
    2 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится
    Hint 1
    Hint 2
    Hint 3
    • »
      »
      »
      2 года назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      You use one word incorrectly:

      Spoiler
»
2 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I don't know if it is right to discuss it here, but it is related to a question in this bootcamp. do let me know if I am not supposed to ask or post anything here. I am new to this platform.

In a particular problem if I use.

for(size_t i=0; i * i <= n ; i++) //I get TLE where n is upto 10e12.

for(size_t i =0; i<=sqrt(n) ; i++) //The answer gets accepted

is there any difference(in performance)? if yes then an explanation will be helpful.

»
2 года назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

someone help me solving [problem:P48]

»
2 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
  • »
    »
    2 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    XOR of two equal numbers is 0. So also XOR of any even number of equal numbers is 0.

»
2 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Since someone necro'd this, I request 100 hard problems bootcamp!

»
22 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Great

»
13 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Hello, I am trying to solve the Lost Rectangle problem. In my first try, I used normal way to find out the factors which led me to failure because of time limit.

Later I tried to implement sieve for prime factors, and again I got stuck for the 7th test with the input 1000000000000. I took integer which will not support this long. But when I tried to use long long I started getting memeroy stack issues. Also, I am facing the array size limit here as well.

Here is my last submission code: https://github.com/ahsanaasim/problem-solving/blob/main/codeforces/355493/P13-Lost%20rectangle/main.cpp

Is my approach entirely wrong? Or is there a way to solve it the way I am trying

»
12 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
»
10 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

can anyone please help me with this problem : (https://codeforces.com/group/yg7WhsFsAp/contest/419146/problem/P23)

  • »
    »
    10 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    I saw this interesting idea:

    I think the natural instinct is to do the problem as in the statement. Find divisors of 1, then divisors of 2, divisors of 3, etc. up until n.

    However, what if we did it the other way around? In other words, we found the number of numbers in (1, n) were divisible by 1, then the number that were divisible by 2, then divisible by 3, etc.

»
9 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

link of the solution stream??

»
7 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

[problem:P19] Can someone please explain this problem for me.