Recent Submissions

2026/06/15 05:39:02 srtubaki solved Problem0023 (Line: 6)
2026/06/15 05:33:23 srtubaki solved Problem0022 (Line: 12)
2026/06/15 05:16:27 srtubaki solved Problem0020 (Line: 12)
2026/06/15 05:12:54 srtubaki solved Problem0019 (Line: 5)
2026/06/15 05:10:12 Kent477 solved Problem0078 (Line: 1)
2026/06/15 05:09:10 Kent477 solved Problem0049 (Line: 1)
2026/06/15 05:09:09 srtubaki solved Problem0018 (Line: 7)
2026/06/15 05:08:49 srtubaki solved Problem0018 (Line: 7)
2026/06/15 05:08:45 Kent477 solved Problem0045 (Line: 1)
2026/06/15 05:07:34 srtubaki solved Problem0017 (Line: 2)
2026/06/15 05:07:05 srtubaki solved Problem0016 (Line: 1)
2026/06/15 05:05:59 srtubaki solved Problem0015 (Line: 13)
2026/06/15 05:05:49 srtubaki solved Problem0015 (Line: 13)
2026/06/15 05:04:05 srtubaki solved Problem0015 (Line: 13)
2026/06/15 05:01:52 srtubaki solved Problem0015 (Line: 14)
2026/06/15 05:00:09 Kent477 solved Problem0035 (Line: 1)
2026/06/15 04:26:53 Kent477 solved Problem0017 (Line: 2)
2026/06/15 04:25:13 Kent477 solved Problem0016 (Line: 1)
2026/06/15 04:00:08 Kent477 solved Problem0013 (Line: 10)
2026/06/15 03:45:52 Kent477 solved Problem0008 (Line: 3)
2026/06/15 03:13:06 bd_ solved Problem0026 (Line: 11)
2026/06/15 03:08:16 Kent477 solved Problem0012 (Line: 11)
2026/06/15 03:08:07 bd_ solved Problem0025 (Line: 6)
2026/06/15 03:05:14 bd_ solved Problem0023 (Line: 6)
2026/06/15 02:44:03 bd_ solved Problem0020 (Line: 12)
2026/06/15 02:43:02 bd_ solved Problem0019 (Line: 5)
2026/06/15 02:42:30 __char__ solved Problem0019 (Line: 5)
2026/06/15 02:40:43 bd_ solved Problem0018 (Line: 7)
2026/06/15 02:38:51 bd_ solved Problem0017 (Line: 2)
2026/06/15 02:38:32 bd_ solved Problem0016 (Line: 1)
2026/06/15 02:38:02 bd_ solved Problem0015 (Line: 20)
2026/06/15 02:28:41 bd_ solved Problem0014 (Line: 11)
2026/06/15 02:28:07 __char__ solved Problem0063 (Line: 3)
2026/06/15 02:26:59 __char__ solved Problem0061 (Line: 2)
2026/06/15 02:25:24 bd_ solved Problem0013 (Line: 13)
2026/06/15 02:21:19 bd_ solved Problem0012 (Line: 34)
2026/06/15 02:13:45 bd_ solved Problem0011 (Line: 11)
2026/06/15 02:11:12 bd_ solved Problem0010 (Line: 7)
2026/06/15 02:09:51 bd_ solved Problem0009 (Line: 4)
2026/06/15 02:09:03 bd_ solved Problem0008 (Line: 3)
2026/06/15 02:06:07 bd_ solved Problem0007 (Line: 3)
2026/06/15 02:05:23 bd_ solved Problem0006 (Line: 3)
2026/06/15 02:05:06 bd_ solved Problem0005 (Line: 1)
2026/06/15 02:01:47 bd_ solved Problem0004 (Line: 3)
2026/06/15 02:01:34 bd_ solved Problem0003 (Line: 1)
2026/06/15 02:00:48 bd_ solved Problem0002 (Line: 1)
2026/06/15 02:00:23 bd_ solved Problem0001 (Line: 1)
2026/06/15 01:39:30 __char__ solved Problem0052 (Line: 3)
2026/06/15 01:38:24 __char__ solved Problem0051 (Line: 3)
2026/06/15 01:35:37 __char__ solved Problem0050 (Line: 2)

News

About

Markov Algorithm

quote from wikipedia:

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 and Limitations

pattern:replacement This is ordinary rule. Replace first occurrence of pattern to replacement.
pattern::replacement This is terminating rule. Replace first occurrence of pattern to replacement and the algorithm stops.
empty pattern Empty string matches to the beginning of a string.
comments Lines not containing : are regarded as comments.
spaces Leading/trailing spaces in pattern/replacement are ignored.
step limit The number of replacements must not 50000 times.
string length limit The length of input string must not exceed 500 at any moment.
code length limit The length of the code must not exceed 1000 including comments and blanks.

Specifications

  • Your code will be accepted if it runs correctly for all testcases prepared by the problem writer.
  • The score is calculated based on the number of lines of replacement rules.
  • Scoring formula is min(900*Best / Yours + 100, 1000).
  • The fastest player who solved in fewest lines becomes Top player.
  • However the writer cannot become Top player and his/her solution isn't applied to Best.
  • Testcase hack is not allowed. If I find it, I will edit testcases and run rejudge.