JasonMendoza2008's blog

By JasonMendoza2008, history, 5 hours ago, In English

For this problem https://mirror.codeforces.com/gym/103708/problem/G, the "proper" way to solve it is to use Multi Dimensional Ternary Search.

If I were to solve it with random search (it passes: https://mirror.codeforces.com/gym/103708/submission/274048924 — very much easily), would this be considered a valid solution? I feel like saying no would invalidate the use of string / polynomial hashing but saying yes feels very much wrong.

What is the CP community opinion on this?

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

»
5 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by JasonMendoza2008 (previous revision, new revision, compare).

»
5 hours ago, # |
  Vote: I like it +6 Vote: I do not like it

If it can be guaranteed to work with a very low probability of failing on any test case, it will get AC and thus it is a valid solution.

»
5 hours ago, # |
  Vote: I like it +6 Vote: I do not like it

Yes