Recent Submissions

2026/04/21 17:25:20 satone solved Problem0078 (Line: 1)
2026/04/21 17:11:33 satone solved Problem0061 (Line: 2)
2026/04/21 17:04:37 satone solved Problem0023 (Line: 10)
2026/04/21 11:55:52 satone solved Problem0019 (Line: 5)
2026/04/21 11:53:57 satone solved Problem0019 (Line: 10)
2026/04/21 11:51:26 satone solved Problem0018 (Line: 7)
2026/04/21 11:42:47 satone solved Problem0017 (Line: 2)
2026/04/21 11:40:39 satone solved Problem0016 (Line: 1)
2026/04/21 06:09:40 Yusuke728 solved Problem0022 (Line: 12)
2026/04/21 04:13:31 Kziz3988 solved Problem0025 (Line: 6)
2026/04/21 04:13:10 Kziz3988 solved Problem0025 (Line: 8)
2026/04/21 04:05:54 Kziz3988 solved Problem0073 (Line: 14)
2026/04/21 03:37:04 Kziz3988 solved Problem0076 (Line: 37)
2026/04/21 03:13:47 Kziz3988 solved Problem0071 (Line: 15)
2026/04/21 02:56:12 Kziz3988 solved Problem0069 (Line: 5)
2026/04/21 02:40:12 Kziz3988 solved Problem0066 (Line: 10)
2026/04/21 02:36:29 Kziz3988 solved Problem0065 (Line: 16)
2026/04/21 02:34:52 Kziz3988 solved Problem0064 (Line: 9)
2026/04/21 02:32:33 Kziz3988 solved Problem0063 (Line: 3)
2026/04/21 02:31:08 Kziz3988 solved Problem0062 (Line: 2)
2026/04/21 02:25:59 Kziz3988 solved Problem0008 (Line: 3)
2026/04/21 02:16:01 Kziz3988 solved Problem0036 (Line: 8)
2026/04/21 02:08:58 Kziz3988 solved Problem0045 (Line: 1)
2026/04/21 02:01:57 Kziz3988 solved Problem0041 (Line: 27)
2026/04/21 01:55:03 Kziz3988 solved Problem0023 (Line: 6)
2026/04/21 01:50:58 Kziz3988 solved Problem0018 (Line: 7)
2026/04/21 01:46:58 Kziz3988 solved Problem0019 (Line: 10)
2026/04/21 01:44:33 Kziz3988 solved Problem0052 (Line: 9)
2026/04/21 01:31:32 Kziz3988 solved Problem0050 (Line: 2)
2026/04/21 01:30:44 Kziz3988 solved Problem0049 (Line: 1)
2026/04/21 01:29:57 Kziz3988 solved Problem0061 (Line: 2)
2026/04/21 01:09:49 Kziz3988 solved Problem0078 (Line: 1)
2026/04/21 00:52:43 Kziz3988 solved Problem0007 (Line: 3)
2026/04/21 00:50:27 Kziz3988 solved Problem0006 (Line: 3)
2026/04/21 00:49:41 Kziz3988 solved Problem0005 (Line: 1)
2026/04/21 00:49:09 Kziz3988 solved Problem0004 (Line: 3)
2026/04/21 00:48:49 Kziz3988 solved Problem0003 (Line: 1)
2026/04/21 00:47:12 Kziz3988 solved Problem0016 (Line: 1)
2026/04/21 00:45:34 Kziz3988 solved Problem0017 (Line: 3)
2026/04/21 00:41:28 Kziz3988 solved Problem0035 (Line: 1)
2026/04/21 00:35:57 Kziz3988 solved Problem0002 (Line: 1)
2026/04/21 00:34:37 Kziz3988 solved Problem0001 (Line: 1)
2026/04/20 23:16:02 fakeYoki solved Problem0011 (Line: 11)
2026/04/20 23:03:19 fakeYoki solved Problem0011 (Line: 12)
2026/04/20 23:01:47 fakeYoki solved Problem0011 (Line: 15)
2026/04/20 22:55:23 fakeYoki solved Problem0011 (Line: 11)
2026/04/20 22:49:20 fakeYoki solved Problem0011 (Line: 14)
2026/04/20 22:47:55 fakeYoki solved Problem0011 (Line: 22)
2026/04/20 12:20:20 Yusuke728 solved Problem0022 (Line: 13)
2026/04/20 06:10:58 kuruma solved Problem0052 (Line: 3)

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.