Recent Submissions

2021/09/18 18:24:14 dddi solved Problem0020 (Line: 12)
2021/09/18 17:52:43 Series_205 solved Problem0079 (Line: 5)
2021/09/18 17:50:43 Series_205 solved Problem0078 (Line: 1)
2021/09/18 17:49:53 Series_205 solved Problem0008 (Line: 3)
2021/09/17 18:21:21 Yupiteru solved Problem0010 (Line: 7)
2021/09/17 17:11:17 Yupiteru solved Problem0030 (Line: 7)
2021/09/17 17:03:40 Yupiteru solved Problem0030 (Line: 8)
2021/09/17 17:02:26 Yupiteru solved Problem0030 (Line: 8)
2021/09/17 16:59:16 Yupiteru solved Problem0030 (Line: 8)
2021/09/17 15:59:18 motomiya solved Problem0052 (Line: 3)
2021/09/17 15:57:33 motomiya solved Problem0051 (Line: 3)
2021/09/17 15:51:04 motomiya solved Problem0050 (Line: 2)
2021/09/17 15:50:19 motomiya solved Problem0049 (Line: 1)
2021/09/17 15:03:41 Poxman100 solved Problem0001 (Line: 1)
2021/09/17 15:00:19 oolimry solved Problem0006 (Line: 3)
2021/09/16 19:51:57 Yupiteru solved Problem0030 (Line: 12)
2021/09/09 21:30:10 hayoneho solved Problem0030 (Line: 17)
2021/09/09 21:26:48 hayoneho solved Problem0029 (Line: 17)
2021/09/09 21:18:49 hayoneho solved Problem0029 (Line: 18)
2021/09/09 21:17:53 hayoneho solved Problem0029 (Line: 19)
2021/09/09 18:32:22 hayoneho solved Problem0026 (Line: 12)
2021/09/09 18:30:45 hayoneho solved Problem0026 (Line: 13)
2021/09/09 16:17:35 cottoncotton solved Problem0027 (Line: 9)
2021/09/01 02:30:50 iorion solved Problem0084 (Line: 26)
2021/09/01 02:10:18 iorion solved Problem0037 (Line: 6)
2021/09/01 02:05:44 iorion solved Problem0038 (Line: 5)
2021/09/01 02:04:06 iorion solved Problem0037 (Line: 8)
2021/09/01 02:03:02 iorion solved Problem0036 (Line: 3)
2021/09/01 02:02:09 iorion solved Problem0035 (Line: 1)
2021/09/01 01:48:49 iorion solved Problem0085 (Line: 9)
2021/09/01 01:32:08 iorion solved Problem0081 (Line: 7)
2021/09/01 01:21:17 iorion solved Problem0079 (Line: 5)
2021/09/01 01:17:03 iorion solved Problem0083 (Line: 23)
2021/09/01 01:14:09 iorion solved Problem0083 (Line: 21)
2021/09/01 01:02:46 iorion solved Problem0085 (Line: 14)
2021/09/01 00:56:25 iorion solved Problem0082 (Line: 30)
2021/09/01 00:49:19 iorion solved Problem0081 (Line: 8)
2021/09/01 00:46:55 iorion solved Problem0080 (Line: 2)
2021/09/01 00:42:14 iorion solved Problem0079 (Line: 8)
2021/09/01 00:36:20 iorion solved Problem0078 (Line: 1)
2021/09/01 00:18:51 Shirokami solved Problem0061 (Line: 3)
2021/08/31 15:30:13 motomiya solved Problem0037 (Line: 6)
2021/08/31 15:28:19 motomiya solved Problem0037 (Line: 8)
2021/08/31 15:26:59 motomiya solved Problem0036 (Line: 3)
2021/08/31 15:26:07 motomiya solved Problem0035 (Line: 1)
2021/08/31 15:18:10 motomiya solved Problem0085 (Line: 6)
2021/08/31 15:15:37 motomiya solved Problem0085 (Line: 11)
2021/08/29 12:37:46 lyc solved Problem0069 (Line: 3)
2021/08/29 12:33:57 lyc solved Problem0063 (Line: 3)
2021/08/27 13:18:23 DPair solved Problem0079 (Line: 4)

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.