Recent Submissions

2026/11/24 22:32:10 vulz solved Problem0004 (Line: 3)
2026/11/24 22:31:22 vulz solved Problem0003 (Line: 1)
2026/11/24 22:21:23 vulz solved Problem0002 (Line: 1)
2026/11/24 22:20:38 vulz solved Problem0001 (Line: 1)
2026/11/24 21:53:34 agindwinhs solved Problem0024 (Line: 25)
2026/11/24 16:16:57 agindwinhs solved Problem0031 (Line: 45)
2026/11/24 15:01:13 charhan_ solved Problem0010 (Line: 7)
2026/11/24 14:55:43 charhan_ solved Problem0009 (Line: 4)
2026/11/24 14:54:57 charhan_ solved Problem0008 (Line: 3)
2026/11/24 14:49:58 charhan_ solved Problem0003 (Line: 1)
2026/11/24 14:49:45 charhan_ solved Problem0002 (Line: 1)
2026/11/24 14:49:31 charhan_ solved Problem0001 (Line: 1)
2026/11/24 13:56:20 jess3jane solved Problem0028 (Line: 21)
2026/11/24 13:54:12 jess3jane solved Problem0078 (Line: 1)
2026/11/24 13:53:31 jess3jane solved Problem0063 (Line: 3)
2026/11/24 13:51:31 jess3jane solved Problem0052 (Line: 4)
2026/11/24 13:50:30 jess3jane solved Problem0024 (Line: 25)
2026/11/24 13:48:02 jess3jane solved Problem0051 (Line: 3)
2026/11/24 13:47:00 jess3jane solved Problem0062 (Line: 2)
2026/11/24 13:46:11 jess3jane solved Problem0053 (Line: 3)
2026/11/24 13:45:38 jess3jane solved Problem0061 (Line: 2)
2026/11/24 13:44:31 jess3jane solved Problem0037 (Line: 6)
2026/11/24 13:43:09 jess3jane solved Problem0050 (Line: 2)
2026/11/24 13:42:39 jess3jane solved Problem0049 (Line: 1)
2026/11/24 13:42:17 jess3jane solved Problem0012 (Line: 37)
2026/11/23 21:34:35 agindwinhs solved Problem0078 (Line: 1)
2026/11/23 21:26:01 agindwinhs solved Problem0006 (Line: 3)
2026/11/23 21:24:38 agindwinhs solved Problem0045 (Line: 1)
2026/11/23 21:22:39 agindwinhs solved Problem0030 (Line: 18)
2026/11/23 21:17:36 agindwinhs solved Problem0029 (Line: 18)
2026/11/23 19:28:52 agindwinhs solved Problem0080 (Line: 3)
2026/11/23 19:22:56 agindwinhs solved Problem0001 (Line: 1)
2026/11/23 18:21:02 r_4spberry solved Problem0005 (Line: 1)
2026/11/23 18:20:20 r_4spberry solved Problem0004 (Line: 3)
2026/11/23 18:19:54 r_4spberry solved Problem0003 (Line: 1)
2026/11/23 18:18:30 r_4spberry solved Problem0002 (Line: 1)
2026/11/23 18:18:00 r_4spberry solved Problem0001 (Line: 1)
2026/11/23 09:17:32 jess3jane solved Problem0045 (Line: 1)
2026/11/23 08:47:12 jess3jane solved Problem0036 (Line: 3)
2026/11/23 08:46:27 jess3jane solved Problem0035 (Line: 1)
2026/11/22 15:56:12 jess3jane solved Problem0026 (Line: 12)
2026/11/22 15:48:52 jess3jane solved Problem0025 (Line: 6)
2026/11/22 12:46:44 jess3jane solved Problem0023 (Line: 8)
2026/11/22 12:43:30 jess3jane solved Problem0020 (Line: 12)
2026/11/22 12:42:05 jess3jane solved Problem0019 (Line: 5)
2026/11/22 12:40:34 jess3jane solved Problem0017 (Line: 2)
2026/11/22 12:39:32 jess3jane solved Problem0016 (Line: 1)
2026/11/22 12:37:13 jess3jane solved Problem0018 (Line: 7)
2026/11/22 12:30:24 jess3jane solved Problem0014 (Line: 15)
2026/11/22 12:28:22 jess3jane solved Problem0013 (Line: 13)

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.