Recent Submissions

2025/02/21 06:34:59 inksamurai solved Problem0064 (Line: 8)
2025/02/21 06:31:44 inksamurai solved Problem0065 (Line: 9)
2025/02/21 06:31:22 inksamurai solved Problem0065 (Line: 10)
2025/02/20 21:07:06 ORzyzRO solved Problem0028 (Line: 20)
2025/02/20 20:55:36 ORzyzRO solved Problem0009 (Line: 4)
2025/02/20 20:47:31 ORzyzRO solved Problem0028 (Line: 28)
2025/02/20 20:19:54 QwQcOrZ solved Problem0011 (Line: 12)
2025/02/20 19:55:27 QwQcOrZ solved Problem0010 (Line: 7)
2025/02/20 19:52:04 QwQcOrZ solved Problem0009 (Line: 4)
2025/02/20 19:51:07 QwQcOrZ solved Problem0003 (Line: 1)
2025/02/20 19:50:43 QwQcOrZ solved Problem0008 (Line: 3)
2025/02/20 19:49:35 QwQcOrZ solved Problem0007 (Line: 3)
2025/02/20 19:48:46 QwQcOrZ solved Problem0006 (Line: 3)
2025/02/20 19:48:16 QwQcOrZ solved Problem0005 (Line: 1)
2025/02/20 19:47:54 QwQcOrZ solved Problem0004 (Line: 3)
2025/02/20 19:47:33 QwQcOrZ solved Problem0003 (Line: 2)
2025/02/20 19:46:55 QwQcOrZ solved Problem0002 (Line: 1)
2025/02/20 19:46:43 QwQcOrZ solved Problem0001 (Line: 1)
2025/02/20 00:14:52 lmh_qwq solved Problem0042 (Line: 5)
2025/02/20 00:11:51 lmh_qwq solved Problem0040 (Line: 12)
2025/02/20 00:10:48 lmh_qwq solved Problem0039 (Line: 9)
2025/02/20 00:08:15 lmh_qwq solved Problem0038 (Line: 8)
2025/02/20 00:03:55 lmh_qwq solved Problem0037 (Line: 8)
2025/02/20 00:03:32 lmh_qwq solved Problem0036 (Line: 3)
2025/02/20 00:02:44 lmh_qwq solved Problem0035 (Line: 1)
2025/02/20 00:02:20 lmh_qwq solved Problem0033 (Line: 10)
2025/02/19 23:58:58 lmh_qwq solved Problem0034 (Line: 7)
2025/02/19 23:56:30 lmh_qwq solved Problem0032 (Line: 10)
2025/02/19 23:54:21 lmh_qwq solved Problem0031 (Line: 37)
2025/02/19 23:41:34 lmh_qwq solved Problem0030 (Line: 15)
2025/02/19 23:39:29 lmh_qwq solved Problem0029 (Line: 12)
2025/02/19 23:35:38 lmh_qwq solved Problem0028 (Line: 21)
2025/02/19 23:32:59 lmh_qwq solved Problem0027 (Line: 15)
2025/02/19 23:31:56 lmh_qwq solved Problem0026 (Line: 20)
2025/02/19 23:27:41 lmh_qwq solved Problem0025 (Line: 7)
2025/02/19 23:26:35 lmh_qwq solved Problem0024 (Line: 25)
2025/02/19 23:24:43 lmh_qwq solved Problem0023 (Line: 9)
2025/02/19 23:22:59 lmh_qwq solved Problem0022 (Line: 14)
2025/02/19 23:19:22 lmh_qwq solved Problem0020 (Line: 12)
2025/02/19 23:18:25 lmh_qwq solved Problem0019 (Line: 5)
2025/02/19 23:17:59 lmh_qwq solved Problem0018 (Line: 7)
2025/02/19 23:17:14 lmh_qwq solved Problem0017 (Line: 2)
2025/02/19 23:17:02 lmh_qwq solved Problem0016 (Line: 1)
2025/02/19 23:16:49 lmh_qwq solved Problem0015 (Line: 21)
2025/02/19 23:12:56 lmh_qwq solved Problem0014 (Line: 13)
2025/02/19 22:55:07 lmh_qwq solved Problem0013 (Line: 11)
2025/02/19 22:52:10 lmh_qwq solved Problem0012 (Line: 11)
2025/02/19 22:50:32 lmh_qwq solved Problem0011 (Line: 11)
2025/02/19 22:50:22 lmh_qwq solved Problem0011 (Line: 12)
2025/02/19 22:41:03 lmh_qwq solved Problem0010 (Line: 7)

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.