Recent Submissions

2026/10/13 02:27:20 ABCDFFG solved Problem0023 (Line: 9)
2026/10/13 02:21:19 ABCDFFG solved Problem0010 (Line: 7)
2026/10/13 01:18:01 3109 solved Problem0027 (Line: 10)
2026/10/13 01:14:23 ABCDFFG solved Problem0024 (Line: 25)
2026/10/13 01:11:50 ABCDFFG solved Problem0062 (Line: 2)
2026/10/13 01:08:54 ABCDFFG solved Problem0061 (Line: 2)
2026/10/13 01:03:37 3109 solved Problem0025 (Line: 5)
2026/10/13 01:00:41 3109 solved Problem0025 (Line: 6)
2026/10/13 00:55:52 ABCDFFG solved Problem0052 (Line: 3)
2026/10/13 00:55:08 ABCDFFG solved Problem0051 (Line: 3)
2026/10/13 00:54:08 ABCDFFG solved Problem0050 (Line: 2)
2026/10/13 00:52:56 ABCDFFG solved Problem0049 (Line: 1)
2026/10/13 00:52:45 ABCDFFG solved Problem0049 (Line: 3)
2026/10/13 00:49:37 ABCDFFG solved Problem0025 (Line: 9)
2026/10/13 00:43:20 3109 solved Problem0024 (Line: 15)
2026/10/13 00:41:52 ABCDFFG solved Problem0045 (Line: 1)
2026/10/13 00:41:38 ABCDFFG solved Problem0045 (Line: 2)
2026/10/13 00:41:03 ABCDFFG solved Problem0053 (Line: 3)
2026/10/13 00:37:34 ABCDFFG solved Problem0035 (Line: 3)
2026/10/13 00:34:56 ABCDFFG solved Problem0085 (Line: 9)
2026/10/13 00:32:53 ABCDFFG solved Problem0085 (Line: 11)
2026/10/13 00:30:56 ABCDFFG solved Problem0080 (Line: 2)
2026/10/13 00:26:11 ABCDFFG solved Problem0078 (Line: 1)
2026/10/12 23:59:27 ABCDFFG solved Problem0014 (Line: 11)
2026/10/12 23:51:25 ABCDFFG solved Problem0013 (Line: 9)
2026/10/12 23:39:52 ABCDFFG solved Problem0019 (Line: 5)
2026/10/12 23:39:35 ABCDFFG solved Problem0019 (Line: 6)
2026/10/12 23:38:02 ABCDFFG solved Problem0018 (Line: 7)
2026/10/12 23:31:21 ABCDFFG solved Problem0069 (Line: 4)
2026/10/12 23:27:53 ABCDFFG solved Problem0016 (Line: 1)
2026/10/12 23:19:34 ABCDFFG solved Problem0009 (Line: 6)
2026/10/12 23:19:09 ABCDFFG solved Problem0009 (Line: 6)
2026/10/12 23:17:53 hulgas solved Problem0070 (Line: 29)
2026/10/12 23:15:35 ABCDFFG solved Problem0008 (Line: 3)
2026/10/12 23:04:43 ABCDFFG solved Problem0007 (Line: 3)
2026/10/12 23:01:48 ABCDFFG solved Problem0006 (Line: 3)
2026/10/12 23:01:02 ABCDFFG solved Problem0005 (Line: 1)
2026/10/12 23:00:34 ABCDFFG solved Problem0004 (Line: 3)
2026/10/12 22:59:59 ABCDFFG solved Problem0003 (Line: 1)
2026/10/12 22:58:36 ABCDFFG solved Problem0002 (Line: 1)
2026/10/12 22:58:18 hulgas solved Problem0070 (Line: 50)
2026/10/12 22:58:16 ABCDFFG solved Problem0002 (Line: 1)
2026/10/12 22:57:36 ABCDFFG solved Problem0001 (Line: 1)
2026/10/12 18:38:59 kiwi solved Problem0082 (Line: 12)
2026/10/12 18:00:54 hulgas solved Problem0047 (Line: 15)
2026/10/12 15:33:06 3109 solved Problem0023 (Line: 7)
2026/10/12 15:32:47 3109 solved Problem0023 (Line: 8)
2026/10/12 15:18:59 3109 solved Problem0022 (Line: 12)
2026/10/12 08:09:36 hulgas solved Problem0076 (Line: 36)
2026/10/12 02:55:55 hulgas solved Problem0076 (Line: 42)

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.