Ilya_Is2022's blog

By Ilya_Is2022, 3 years ago, translation, In English

Drum roll and EDITORIAL is ready! (⁠✷⁠‿⁠✷⁠) SRound #1

447021A - CS:GO and ping

Tutorial
Solution
Rate the problem

447021B - Interesting subsections

Tutorial
Solution
Rate the problem

447021C - Degree or not?

Tutorial
Solution (C++)
Solution (Python)
Rate the problem

447021D - A hidden number (Easy Version)

Tutorial
Solution
Rate the problem

447021E - An unusual guessing game

Tutorial
Solution (Ilya_Is2022, C++)
Short solution (nekstas, Python)
Rate the problem

447021F - The nearest bus

Tutorial
Solution
Rate the problem

447021G - Degree of perturbation

Tutorial
Solution
Rate the problem

447021H - Tetris 99

Tutorial
Code for finding numbers (C++)
Solution (C++)
Rate the problem
  • Vote: I like it
  • +6
  • Vote: I do not like it

| Write comment?
»
3 years ago, hide # |
← Rev. 2  
Vote: I like it +23 Vote: I do not like it

For D2, in testcase: $$$a=0, b=1,k=1$$$, or testcase $$$a=1, b=0,k=1$$$ your model solution is wrong. Note that in one of these cases, your model solution assumes it can put a leading zero in a natural number. But this is wrong.

One way of noticing this, is trying to plug these cases into the solution of D1 (note that any solution with these low values of a,b,k would fit in numbers $$$\leq 10000$$$.

  • »
    »
    3 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    The notification said that the inverse numbers can start from zero...

    Therefore, one of the models will output YES, and the other NO...

    • »
      »
      »
      3 years ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      Yes, the reverse number can contain leading zeroes. But the decimal notation of natural numbers cannot contain leading zeroes, so that would mean reverse numbers, can't contain a 0 at the end.

»
3 years ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

Amazing problems. Waiting for another round