Recent Submissions

2026/10/14 22:49:34 komichi solved Problem0019 (Line: 5)
2026/10/14 22:31:05 komichi solved Problem0073 (Line: 18)
2026/10/14 22:19:52 yao99 solved Problem0076 (Line: 12)
2026/10/14 22:13:28 yao99 solved Problem0022 (Line: 11)
2026/10/14 19:52:52 Sparkle_Infinity solved Problem0032 (Line: 11)
2026/10/14 19:49:26 komichi solved Problem0076 (Line: 22)
2026/10/14 19:49:19 Sparkle_Infinity solved Problem0032 (Line: 16)
2026/10/14 19:26:15 komichi solved Problem0053 (Line: 3)
2026/10/14 19:24:05 komichi solved Problem0037 (Line: 6)
2026/10/14 19:20:45 Sparkle_Infinity solved Problem0035 (Line: 1)
2026/10/14 19:17:35 Sparkle_Infinity solved Problem0062 (Line: 2)
2026/10/14 19:16:34 Sparkle_Infinity solved Problem0061 (Line: 2)
2026/10/14 19:11:15 hulgas solved Problem0060 (Line: 168)
2026/10/14 19:09:48 hulgas solved Problem0059 (Line: 29)
2026/10/14 19:04:39 Sparkle_Infinity solved Problem0080 (Line: 2)
2026/10/14 19:03:41 Sparkle_Infinity solved Problem0078 (Line: 1)
2026/10/14 19:01:44 Sparkle_Infinity solved Problem0049 (Line: 1)
2026/10/14 19:01:11 Sparkle_Infinity solved Problem0045 (Line: 1)
2026/10/14 18:56:24 Sparkle_Infinity solved Problem0017 (Line: 2)
2026/10/14 18:56:03 Sparkle_Infinity solved Problem0016 (Line: 1)
2026/10/14 18:27:02 Sparkle_Infinity solved Problem0007 (Line: 3)
2026/10/14 18:26:35 Sparkle_Infinity solved Problem0006 (Line: 3)
2026/10/14 18:25:59 Sparkle_Infinity solved Problem0005 (Line: 1)
2026/10/14 18:25:12 Sparkle_Infinity solved Problem0004 (Line: 3)
2026/10/14 18:24:34 Sparkle_Infinity solved Problem0003 (Line: 1)
2026/10/14 18:24:01 Sparkle_Infinity solved Problem0001 (Line: 1)
2026/10/14 18:23:35 Sparkle_Infinity solved Problem0002 (Line: 1)
2026/10/14 16:44:00 komichi solved Problem0012 (Line: 11)
2026/10/14 16:33:32 komichi solved Problem0077 (Line: 35)
2026/10/14 16:32:41 komichi solved Problem0077 (Line: 36)
2026/10/14 14:56:05 unputdownable solved Problem0066 (Line: 5)
2026/10/14 13:43:16 komichi solved Problem0018 (Line: 7)
2026/10/14 13:33:46 komichi solved Problem0011 (Line: 11)
2026/10/14 13:30:44 komichi solved Problem0025 (Line: 5)
2026/10/14 13:26:48 komichi solved Problem0025 (Line: 7)
2026/10/14 12:48:45 komichi solved Problem0048 (Line: 4)
2026/10/14 12:38:43 komichi solved Problem0061 (Line: 2)
2026/10/14 12:38:11 komichi solved Problem0062 (Line: 2)
2026/10/14 12:36:33 komichi solved Problem0064 (Line: 6)
2026/10/14 12:23:39 komichi solved Problem0064 (Line: 8)
2026/10/14 12:19:26 komichi solved Problem0063 (Line: 3)
2026/10/14 10:32:36 komichi solved Problem0065 (Line: 8)
2026/10/14 10:18:09 yao99 solved Problem0070 (Line: 7)
2026/10/14 10:16:37 komichi solved Problem0020 (Line: 12)
2026/10/14 10:13:32 komichi solved Problem0020 (Line: 13)
2026/10/14 10:11:07 yao99 solved Problem0070 (Line: 8)
2026/10/14 10:09:22 komichi solved Problem0035 (Line: 1)
2026/10/14 10:09:11 komichi solved Problem0036 (Line: 3)
2026/10/14 10:08:40 komichi solved Problem0036 (Line: 4)
2026/10/14 10:03:55 komichi solved Problem0045 (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.