Recent Submissions

2025/05/15 11:57:00 seed solved Problem0074 (Line: 4)
2025/05/15 11:51:31 seed solved Problem0036 (Line: 3)
2025/05/15 11:48:49 seed solved Problem0046 (Line: 7)
2025/05/15 11:43:06 seed solved Problem0052 (Line: 5)
2025/05/14 13:48:19 CainSnuke solved Problem0084 (Line: 18)
2025/05/14 13:27:49 CainSnuke solved Problem0083 (Line: 13)
2025/05/13 16:26:57 seed solved Problem0027 (Line: 9)
2025/05/13 16:16:16 seed solved Problem0085 (Line: 9)
2025/05/13 16:12:46 seed solved Problem0010 (Line: 7)
2025/05/13 16:03:02 seed solved Problem0053 (Line: 3)
2025/05/07 17:29:34 qiuzx solved Problem0052 (Line: 3)
2025/05/07 17:29:21 qiuzx solved Problem0036 (Line: 3)
2025/05/07 17:28:49 qiuzx solved Problem0039 (Line: 4)
2025/05/07 17:28:11 qiuzx solved Problem0013 (Line: 7)
2025/05/07 17:27:56 qiuzx solved Problem0009 (Line: 4)
2025/05/07 17:27:16 qiuzx solved Problem0043 (Line: 5)
2025/05/07 17:27:00 qiuzx solved Problem0044 (Line: 4)
2025/05/07 17:26:28 qiuzx solved Problem0042 (Line: 2)
2025/05/07 17:24:47 qiuzx solved Problem0023 (Line: 5)
2025/05/07 17:24:09 qiuzx solved Problem0007 (Line: 3)
2025/05/07 17:11:46 qiuzx solved Problem0001 (Line: 1)
2025/05/07 16:44:05 seed solved Problem0019 (Line: 5)
2025/05/07 16:32:59 seed solved Problem0018 (Line: 7)
2025/05/07 15:56:13 seed solved Problem0025 (Line: 5)
2025/05/07 15:53:58 seed solved Problem0023 (Line: 5)
2025/05/07 15:45:20 seed solved Problem0080 (Line: 2)
2025/05/07 15:42:20 seed solved Problem0037 (Line: 6)
2025/05/07 15:35:46 seed solved Problem0062 (Line: 2)
2025/05/07 15:34:36 seed solved Problem0063 (Line: 3)
2025/05/07 15:26:54 seed solved Problem0061 (Line: 2)
2025/05/06 12:13:27 seed solved Problem0017 (Line: 2)
2025/05/06 12:13:00 seed solved Problem0016 (Line: 1)
2025/05/06 12:11:36 seed solved Problem0050 (Line: 2)
2025/05/06 12:09:46 seed solved Problem0049 (Line: 1)
2025/05/06 12:09:26 seed solved Problem0069 (Line: 2)
2025/05/06 12:08:12 seed solved Problem0078 (Line: 1)
2025/05/06 12:06:59 seed solved Problem0035 (Line: 1)
2025/05/06 12:06:37 seed solved Problem0045 (Line: 1)
2025/05/06 11:43:37 seed solved Problem0009 (Line: 4)
2025/05/06 11:33:23 seed solved Problem0008 (Line: 3)
2025/05/06 11:31:38 seed solved Problem0004 (Line: 3)
2025/05/06 11:30:51 seed solved Problem0007 (Line: 3)
2025/05/06 11:30:26 seed solved Problem0006 (Line: 3)
2025/05/06 11:30:01 seed solved Problem0005 (Line: 1)
2025/05/06 11:29:40 seed solved Problem0003 (Line: 1)
2025/05/06 11:29:27 seed solved Problem0002 (Line: 1)
2025/05/06 11:29:15 seed solved Problem0001 (Line: 1)
2025/05/06 03:54:06 mashiro0214fc solved Problem0009 (Line: 4)
2025/05/03 06:27:21 jatloe solved Problem0016 (Line: 1)
2025/05/03 06:26:37 jatloe solved Problem0003 (Line: 1)

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.