Recent Submissions

2020/08/08 05:30:55 consecutivelimit solved Problem0044 (Line: 4)
2020/08/08 05:09:32 consecutivelimit solved Problem0065 (Line: 7)
2020/08/08 04:38:02 consecutivelimit solved Problem0060 (Line: 12)
2020/08/08 01:18:49 consecutivelimit solved Problem0014 (Line: 8)
2020/08/08 00:42:15 consecutivelimit solved Problem0010 (Line: 6)
2020/08/07 23:59:03 consecutivelimit solved Problem0066 (Line: 4)
2020/08/07 20:42:08 consecutivelimit solved Problem0059 (Line: 7)
2020/08/07 19:18:31 consecutivelimit solved Problem0073 (Line: 5)
2020/08/07 16:46:21 consecutivelimit solved Problem0043 (Line: 5)
2020/08/07 09:21:20 kawatea solved Problem0072 (Line: 5)
2020/08/07 06:14:12 consecutivelimit solved Problem0046 (Line: 4)
2020/08/07 05:31:14 consecutivelimit solved Problem0047 (Line: 16)
2020/08/07 05:07:36 consecutivelimit solved Problem0047 (Line: 17)
2020/08/06 23:50:29 monnu solved Problem0027 (Line: 9)
2020/08/06 23:47:45 monnu solved Problem0067 (Line: 10)
2020/08/06 18:35:21 consecutivelimit solved Problem0070 (Line: 8)
2020/08/06 18:11:58 consecutivelimit solved Problem0026 (Line: 7)
2020/08/06 11:05:36 dream132 solved Problem0010 (Line: 7)
2020/08/06 11:04:28 dream132 solved Problem0034 (Line: 5)
2020/08/06 10:51:54 dream132 solved Problem0034 (Line: 6)
2020/08/06 04:07:42 consecutivelimit solved Problem0039 (Line: 4)
2020/08/06 03:39:39 consecutivelimit solved Problem0040 (Line: 5)
2020/08/06 02:55:19 consecutivelimit solved Problem0040 (Line: 7)
2020/08/05 21:39:48 dream132 solved Problem0047 (Line: 16)
2020/08/05 21:36:21 dream132 solved Problem0047 (Line: 17)
2020/08/05 18:45:48 consecutivelimit solved Problem0057 (Line: 31)
2020/08/05 18:17:55 consecutivelimit solved Problem0056 (Line: 34)
2020/08/05 17:33:33 consecutivelimit solved Problem0055 (Line: 43)
2020/08/05 17:23:39 consecutivelimit solved Problem0054 (Line: 19)
2020/08/05 15:33:57 4076 solved Problem0051 (Line: 7)
2020/08/05 15:16:46 4076 solved Problem0050 (Line: 2)
2020/08/05 15:14:54 4076 solved Problem0049 (Line: 1)
2020/08/05 15:13:28 4076 solved Problem0045 (Line: 1)
2020/08/05 13:58:37 consecutivelimit solved Problem0013 (Line: 7)
2020/08/05 13:53:21 consecutivelimit solved Problem0042 (Line: 2)
2020/08/05 13:35:24 consecutivelimit solved Problem0067 (Line: 7)
2020/08/05 09:39:52 dream132 solved Problem0033 (Line: 4)
2020/08/05 05:15:04 consecutivelimit solved Problem0028 (Line: 18)
2020/08/05 01:05:38 consecutivelimit solved Problem0027 (Line: 9)
2020/08/05 00:54:40 consecutivelimit solved Problem0041 (Line: 6)
2020/08/05 00:13:33 tester solved Problem0006 (Line: 3)
2020/08/04 23:53:05 tester solved Problem0024 (Line: 25)
2020/08/04 21:35:25 consecutivelimit solved Problem0040 (Line: 11)
2020/08/04 18:28:00 dream132 solved Problem0027 (Line: 9)
2020/08/04 18:22:27 dream132 solved Problem0044 (Line: 4)
2020/08/04 18:20:17 dream132 solved Problem0026 (Line: 7)
2020/08/04 18:07:46 dream132 solved Problem0042 (Line: 2)
2020/08/04 17:48:18 4076 solved Problem0006 (Line: 3)
2020/08/04 17:45:05 4076 solved Problem0005 (Line: 1)
2020/08/04 17:39:56 4076 solved Problem0004 (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.