Recent Submissions

2026/01/20 08:34:41 aleph_zero solved Problem0079 (Line: 5)
2026/01/20 08:31:38 aleph_zero solved Problem0032 (Line: 8)
2026/01/20 08:29:05 aleph_zero solved Problem0038 (Line: 5)
2026/01/20 08:28:43 aleph_zero solved Problem0038 (Line: 6)
2026/01/20 08:27:17 aleph_zero solved Problem0038 (Line: 7)
2026/01/20 07:18:00 aleph_zero solved Problem0052 (Line: 3)
2026/01/20 06:53:52 aleph_zero solved Problem0065 (Line: 9)
2026/01/20 06:48:16 aleph_zero solved Problem0046 (Line: 5)
2026/01/20 06:44:08 aleph_zero solved Problem0064 (Line: 6)
2026/01/20 06:42:38 aleph_zero solved Problem0064 (Line: 9)
2026/01/20 06:40:10 aleph_zero solved Problem0080 (Line: 2)
2026/01/20 06:35:50 aleph_zero solved Problem0069 (Line: 2)
2026/01/20 06:33:14 aleph_zero solved Problem0078 (Line: 1)
2026/01/20 06:32:34 aleph_zero solved Problem0063 (Line: 3)
2026/01/20 06:30:53 aleph_zero solved Problem0052 (Line: 4)
2026/01/20 06:24:48 aleph_zero solved Problem0051 (Line: 3)
2026/01/20 06:19:59 aleph_zero solved Problem0062 (Line: 2)
2026/01/20 06:18:58 aleph_zero solved Problem0053 (Line: 3)
2026/01/20 06:17:09 aleph_zero solved Problem0061 (Line: 2)
2026/01/20 06:16:23 aleph_zero solved Problem0037 (Line: 6)
2026/01/20 06:15:01 aleph_zero solved Problem0050 (Line: 2)
2026/01/20 06:14:20 aleph_zero solved Problem0049 (Line: 1)
2026/01/20 06:13:55 aleph_zero solved Problem0036 (Line: 3)
2026/01/20 06:12:10 aleph_zero solved Problem0045 (Line: 1)
2026/01/20 06:11:38 aleph_zero solved Problem0035 (Line: 1)
2026/01/20 06:03:15 aleph_zero solved Problem0028 (Line: 21)
2026/01/20 05:50:13 aleph_zero solved Problem0027 (Line: 10)
2026/01/20 05:44:08 aleph_zero solved Problem0026 (Line: 12)
2026/01/20 04:57:29 aleph_zero solved Problem0024 (Line: 16)
2026/01/20 04:30:33 aleph_zero solved Problem0025 (Line: 5)
2026/01/20 04:22:40 aleph_zero solved Problem0025 (Line: 6)
2026/01/20 04:16:57 aleph_zero solved Problem0024 (Line: 25)
2026/01/20 04:02:38 aleph_zero solved Problem0023 (Line: 6)
2026/01/20 03:57:40 aleph_zero solved Problem0023 (Line: 7)
2026/01/20 03:49:35 aleph_zero solved Problem0022 (Line: 12)
2026/01/20 03:28:50 aleph_zero solved Problem0014 (Line: 14)
2026/01/20 03:27:54 aleph_zero solved Problem0014 (Line: 12)
2026/01/20 02:35:02 aleph_zero solved Problem0020 (Line: 12)
2026/01/20 02:33:15 aleph_zero solved Problem0019 (Line: 5)
2026/01/20 02:30:36 aleph_zero solved Problem0018 (Line: 7)
2026/01/20 02:28:50 aleph_zero solved Problem0017 (Line: 2)
2026/01/20 02:28:00 aleph_zero solved Problem0016 (Line: 1)
2026/01/20 02:21:03 aleph_zero solved Problem0015 (Line: 15)
2026/01/20 02:09:14 aleph_zero solved Problem0014 (Line: 15)
2026/01/20 01:29:00 aleph_zero solved Problem0013 (Line: 8)
2026/01/20 00:51:48 aleph_zero solved Problem0013 (Line: 9)
2026/01/20 00:33:35 aleph_zero solved Problem0012 (Line: 11)
2026/01/20 00:31:12 aleph_zero solved Problem0010 (Line: 6)
2026/01/20 00:29:45 aleph_zero solved Problem0011 (Line: 11)
2026/01/20 00:11:17 aleph_zero solved Problem0010 (Line: 7)

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.