Recent Submissions

2021/06/13 19:22:01 rogi_52 solved Problem0064 (Line: 6)
2021/06/13 18:50:24 rogi_52 solved Problem0063 (Line: 3)
2021/06/13 18:46:46 rogi_52 solved Problem0012 (Line: 11)
2021/06/13 17:24:07 hizuna solved Problem0041 (Line: 6)
2021/06/13 17:17:05 hizuna solved Problem0046 (Line: 4)
2021/06/13 17:03:57 hizuna solved Problem0036 (Line: 3)
2021/06/13 17:02:38 hizuna solved Problem0035 (Line: 1)
2021/06/13 17:02:15 hizuna solved Problem0080 (Line: 2)
2021/06/13 16:54:33 hizuna solved Problem0078 (Line: 1)
2021/06/13 16:52:05 hizuna solved Problem0069 (Line: 3)
2021/06/13 16:51:03 hizuna solved Problem0037 (Line: 6)
2021/06/13 16:25:21 hizuna solved Problem0012 (Line: 11)
2021/06/13 11:58:37 hizuna solved Problem0064 (Line: 6)
2021/06/13 11:57:34 rogi_52 solved Problem0074 (Line: 4)
2021/06/13 11:53:20 hizuna solved Problem0063 (Line: 3)
2021/06/13 11:50:04 rogi_52 solved Problem0082 (Line: 10)
2021/06/13 11:48:28 hizuna solved Problem0062 (Line: 2)
2021/06/13 11:45:12 hizuna solved Problem0061 (Line: 2)
2021/06/13 11:44:16 rogi_52 solved Problem0080 (Line: 2)
2021/06/13 11:42:56 rogi_52 solved Problem0079 (Line: 4)
2021/06/13 11:41:03 hizuna solved Problem0053 (Line: 3)
2021/06/13 11:33:46 hizuna solved Problem0052 (Line: 3)
2021/06/13 11:31:26 hizuna solved Problem0051 (Line: 3)
2021/06/13 11:28:04 hizuna solved Problem0050 (Line: 2)
2021/06/13 11:25:35 hizuna solved Problem0049 (Line: 1)
2021/06/13 11:25:06 hizuna solved Problem0045 (Line: 1)
2021/06/13 11:20:03 hizuna solved Problem0025 (Line: 5)
2021/06/12 23:39:42 rogi_52 solved Problem0028 (Line: 13)
2021/06/12 23:34:49 rogi_52 solved Problem0011 (Line: 11)
2021/06/12 20:54:04 oolimry solved Problem0032 (Line: 8)
2021/06/12 17:51:54 rogi_52 solved Problem0037 (Line: 6)
2021/06/12 17:12:08 rogi_52 solved Problem0025 (Line: 5)
2021/06/12 15:56:26 nicholask solved Problem0045 (Line: 1)
2021/06/12 15:53:31 nicholask solved Problem0061 (Line: 2)
2021/06/12 15:48:21 nicholask solved Problem0018 (Line: 7)
2021/06/12 15:46:44 nicholask solved Problem0017 (Line: 2)
2021/06/12 15:43:05 nicholask solved Problem0050 (Line: 2)
2021/06/12 15:39:13 nicholask solved Problem0080 (Line: 2)
2021/06/12 15:36:32 rogi_52 solved Problem0019 (Line: 5)
2021/06/12 15:33:11 nicholask solved Problem0078 (Line: 1)
2021/06/12 14:56:38 rogi_52 solved Problem0010 (Line: 6)
2021/06/12 14:48:08 rogi_52 solved Problem0009 (Line: 4)
2021/06/12 04:43:06 jonathanpaulson solved Problem0030 (Line: 21)
2021/06/12 04:19:57 jonathanpaulson solved Problem0029 (Line: 7)
2021/06/12 03:41:17 jonathanpaulson solved Problem0026 (Line: 8)
2021/06/11 17:39:13 rogi_52 solved Problem0078 (Line: 1)
2021/06/11 17:36:14 rogi_52 solved Problem0062 (Line: 2)
2021/06/11 17:35:19 rogi_52 solved Problem0061 (Line: 2)
2021/06/11 17:31:56 rogi_52 solved Problem0045 (Line: 1)
2021/06/11 17:30:37 rogi_52 solved Problem0050 (Line: 2)

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.