Recent Submissions

2026/05/31 01:21:45 ai solved Problem0044 (Line: 6)
2026/05/31 01:15:11 ai solved Problem0043 (Line: 14)
2026/05/31 01:06:10 ai solved Problem0041 (Line: 13)
2026/05/31 01:00:52 ai solved Problem0040 (Line: 13)
2026/05/31 00:56:38 ai solved Problem0039 (Line: 16)
2026/05/31 00:52:59 ai solved Problem0038 (Line: 5)
2026/05/31 00:48:53 ai solved Problem0037 (Line: 7)
2026/05/31 00:47:23 ai solved Problem0034 (Line: 8)
2026/05/31 00:47:11 ai solved Problem0036 (Line: 3)
2026/05/31 00:45:52 ai solved Problem0035 (Line: 1)
2026/05/31 00:39:49 ai solved Problem0033 (Line: 21)
2026/05/31 00:34:55 ai solved Problem0032 (Line: 8)
2026/05/31 00:26:17 ai solved Problem0031 (Line: 31)
2026/05/31 00:18:36 ai solved Problem0030 (Line: 16)
2026/05/31 00:11:04 ai solved Problem0029 (Line: 23)
2026/05/31 00:01:36 ai solved Problem0028 (Line: 20)
2026/05/30 23:53:43 ai solved Problem0027 (Line: 9)
2026/05/30 23:36:53 ai solved Problem0026 (Line: 19)
2026/05/30 23:33:40 ai solved Problem0025 (Line: 5)
2026/05/30 23:31:44 ai solved Problem0025 (Line: 6)
2026/05/30 23:21:59 ai solved Problem0024 (Line: 25)
2026/05/30 23:13:28 ai solved Problem0023 (Line: 9)
2026/05/30 22:48:07 ai solved Problem0022 (Line: 12)
2026/05/30 22:44:35 ai solved Problem0020 (Line: 12)
2026/05/30 22:42:58 ai solved Problem0019 (Line: 5)
2026/05/30 22:40:33 ai solved Problem0019 (Line: 10)
2026/05/30 22:34:52 ai solved Problem0018 (Line: 7)
2026/05/30 22:33:52 ai solved Problem0017 (Line: 2)
2026/05/30 22:33:08 ai solved Problem0016 (Line: 1)
2026/05/30 22:20:16 ai solved Problem0015 (Line: 27)
2026/05/30 22:06:24 ai solved Problem0014 (Line: 11)
2026/05/30 22:01:34 john229 solved Problem0011 (Line: 11)
2026/05/30 21:54:12 john229 solved Problem0062 (Line: 2)
2026/05/30 21:51:42 john229 solved Problem0053 (Line: 3)
2026/05/30 21:50:14 john229 solved Problem0052 (Line: 3)
2026/05/30 21:46:46 ai solved Problem0013 (Line: 10)
2026/05/30 21:44:05 ai solved Problem0012 (Line: 11)
2026/05/30 21:39:37 ai solved Problem0011 (Line: 11)
2026/05/30 21:38:13 ai solved Problem0011 (Line: 23)
2026/05/30 20:41:01 ai solved Problem0010 (Line: 7)
2026/05/30 20:24:58 ai solved Problem0010 (Line: 7)
2026/05/30 19:20:23 ai solved Problem0010 (Line: 7)
2026/05/30 19:19:17 ai solved Problem0009 (Line: 4)
2026/05/30 19:18:25 ai solved Problem0008 (Line: 3)
2026/05/30 19:15:38 ai solved Problem0007 (Line: 3)
2026/05/30 19:13:50 ai solved Problem0006 (Line: 3)
2026/05/30 19:08:51 ai solved Problem0005 (Line: 1)
2026/05/30 18:58:35 ai solved Problem0004 (Line: 3)
2026/05/30 18:54:46 ai solved Problem0003 (Line: 1)
2026/05/30 18:52:24 ai solved Problem0002 (Line: 1)

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.