Tutorial: How to solve problems

👋 Welcome! This page will show you step by step how to use our platform and solve tasks.

Markov algorithm

The Rules is a sequence of pair of strings, usually presented in the form of pattern → replacement. Each rule may be either ordinary or terminating.

Given an input string:

  1. Check the Rules in order from top to bottom to see whether any of the patterns can be found in the input string.
  2. If none is found, the algorithm stops.
  3. If one (or more) is found, use the first of them to replace the leftmost occurrence of matched text in the input string with its replacement. If the rule just applied was a terminating one, the algorithm stops.
  4. Go to step 1.
Note that after each rule application the search starts over from the first rule.

Syntax

Editor

To write you Markov algorithm rules you can use our online editor.

You can use keyboard shortcuts:

Submitting

After selecting one of the problems, you can submit your solution. It will be tested against a set of testcases. If all tests passes, you will get AC verdict. If some tests didn't pass, you will get one of the following verdicts:

Please note that the verdict shown is the verdict you received for the first test case that failed.

Ranking

For each problem you can see ranking. You can also check other's solutions.

â„šī¸ In case of any problems with the site, contact administrators.