Recent Submissions

2025/02/19 13:36:20 Petit_Souris solved Problem0046 (Line: 4)
2025/02/18 16:25:47 Gold14526 solved Problem0027 (Line: 9)
2025/02/18 16:18:54 Gold14526 solved Problem0012 (Line: 11)
2025/02/18 16:18:18 Gold14526 solved Problem0006 (Line: 3)
2025/02/18 16:17:45 Gold14526 solved Problem0009 (Line: 4)
2025/02/18 16:17:14 Gold14526 solved Problem0008 (Line: 3)
2025/02/18 16:16:54 Gold14526 solved Problem0007 (Line: 3)
2025/02/18 16:14:28 Gold14526 solved Problem0005 (Line: 1)
2025/02/18 16:14:18 Gold14526 solved Problem0004 (Line: 3)
2025/02/18 16:14:03 Gold14526 solved Problem0003 (Line: 1)
2025/02/18 16:06:49 Gold14526 solved Problem0080 (Line: 2)
2025/02/18 16:03:13 Gold14526 solved Problem0024 (Line: 17)
2025/02/18 15:55:36 Gold14526 solved Problem0022 (Line: 13)
2025/02/18 15:53:57 fyx solved Problem0062 (Line: 2)
2025/02/18 15:51:20 Gold14526 solved Problem0020 (Line: 12)
2025/02/18 15:47:49 fyx solved Problem0011 (Line: 11)
2025/02/18 15:45:39 Gold14526 solved Problem0037 (Line: 6)
2025/02/18 15:44:50 Gold14526 solved Problem0038 (Line: 5)
2025/02/18 15:42:48 Gold14526 solved Problem0038 (Line: 6)
2025/02/18 15:33:35 Gold14526 solved Problem0063 (Line: 3)
2025/02/18 15:31:36 Gold14526 solved Problem0078 (Line: 1)
2025/02/18 15:30:54 Gold14526 solved Problem0069 (Line: 2)
2025/02/18 15:29:04 Gold14526 solved Problem0069 (Line: 3)
2025/02/18 15:26:31 Gold14526 solved Problem0062 (Line: 2)
2025/02/18 15:25:43 Gold14526 solved Problem0061 (Line: 2)
2025/02/18 15:25:35 fyx solved Problem0010 (Line: 6)
2025/02/18 15:25:09 Gold14526 solved Problem0052 (Line: 3)
2025/02/18 15:24:31 Gold14526 solved Problem0052 (Line: 4)
2025/02/18 15:20:13 Gold14526 solved Problem0010 (Line: 7)
2025/02/18 15:16:35 Gold14526 solved Problem0050 (Line: 2)
2025/02/18 15:15:55 Gold14526 solved Problem0049 (Line: 1)
2025/02/18 15:15:06 Gold14526 solved Problem0036 (Line: 3)
2025/02/18 15:13:49 Gold14526 solved Problem0025 (Line: 5)
2025/02/18 15:12:02 Gold14526 solved Problem0032 (Line: 8)
2025/02/18 15:03:59 fyx solved Problem0010 (Line: 7)
2025/02/18 15:03:35 Gold14526 solved Problem0023 (Line: 6)
2025/02/18 14:57:19 Gold14526 solved Problem0002 (Line: 1)
2025/02/18 14:54:37 fyx solved Problem0045 (Line: 1)
2025/02/18 14:54:13 fyx solved Problem0051 (Line: 3)
2025/02/18 14:53:07 fyx solved Problem0050 (Line: 2)
2025/02/18 14:51:38 fyx solved Problem0049 (Line: 1)
2025/02/18 14:12:05 fyx solved Problem0061 (Line: 2)
2025/02/18 14:08:59 Gold14526 solved Problem0018 (Line: 7)
2025/02/18 14:07:19 fyx solved Problem0017 (Line: 2)
2025/02/18 14:03:55 fyx solved Problem0009 (Line: 4)
2025/02/17 23:11:56 fyx solved Problem0053 (Line: 3)
2025/02/17 22:59:58 fyx solved Problem0016 (Line: 1)
2025/02/17 22:17:37 fyx solved Problem0008 (Line: 3)
2025/02/17 22:07:20 fyx solved Problem0007 (Line: 3)
2025/02/17 22:04:45 fyx solved Problem0006 (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.