Recent Submissions

2026/06/26 16:39:56 ale solved Problem0039 (Line: 12)
2026/06/26 14:46:12 ale solved Problem0081 (Line: 8)
2026/06/26 14:43:58 ale solved Problem0034 (Line: 9)
2026/06/26 12:15:43 ale solved Problem0029 (Line: 11)
2026/06/26 12:04:29 ale solved Problem0027 (Line: 15)
2026/06/26 11:23:41 ale solved Problem0048 (Line: 7)
2026/06/26 11:18:33 ale solved Problem0079 (Line: 5)
2026/06/26 11:13:37 ale solved Problem0065 (Line: 8)
2026/06/26 11:10:51 ale solved Problem0065 (Line: 16)
2026/06/26 11:06:00 ale solved Problem0026 (Line: 13)
2026/06/26 04:27:53 Eriop solved Problem0059 (Line: 64)
2026/06/26 03:20:17 Eriop solved Problem0004 (Line: 3)
2026/06/26 03:18:12 Eriop solved Problem0003 (Line: 1)
2026/06/26 03:17:39 Eriop solved Problem0002 (Line: 1)
2026/06/26 03:15:06 Eriop solved Problem0001 (Line: 1)
2026/06/25 21:44:20 CainSnuke solved Problem0039 (Line: 12)
2026/06/25 16:28:30 ale solved Problem0046 (Line: 7)
2026/06/25 16:25:55 ale solved Problem0080 (Line: 2)
2026/06/25 16:23:44 ale solved Problem0064 (Line: 9)
2026/06/25 16:20:17 ale solved Problem0069 (Line: 3)
2026/06/25 16:19:01 ale solved Problem0015 (Line: 19)
2026/06/25 16:01:39 ale solved Problem0032 (Line: 11)
2026/06/25 15:50:16 ale solved Problem0038 (Line: 9)
2026/06/25 15:44:17 ale solved Problem0028 (Line: 23)
2026/06/25 15:31:10 ale solved Problem0014 (Line: 14)
2026/06/25 13:02:23 ale solved Problem0078 (Line: 1)
2026/06/25 13:01:36 ale solved Problem0063 (Line: 3)
2026/06/25 12:17:13 awooo0000 solved Problem0013 (Line: 7)
2026/06/24 16:40:24 ale solved Problem0022 (Line: 14)
2026/06/24 16:26:46 ale solved Problem0052 (Line: 4)
2026/06/24 15:59:07 qidirj solved Problem0013 (Line: 9)
2026/06/24 15:52:43 qidirj solved Problem0018 (Line: 7)
2026/06/24 15:48:29 qidirj solved Problem0010 (Line: 7)
2026/06/24 15:18:34 ale solved Problem0024 (Line: 26)
2026/06/24 15:06:37 ale solved Problem0051 (Line: 4)
2026/06/24 15:05:02 ale solved Problem0051 (Line: 4)
2026/06/24 15:03:58 ale solved Problem0062 (Line: 2)
2026/06/24 14:59:58 ale solved Problem0053 (Line: 4)
2026/06/24 14:57:18 ale solved Problem0061 (Line: 2)
2026/06/24 14:48:02 ale solved Problem0037 (Line: 8)
2026/06/24 14:46:21 ale solved Problem0049 (Line: 1)
2026/06/24 14:45:43 ale solved Problem0036 (Line: 3)
2026/06/24 14:32:44 ale solved Problem0045 (Line: 1)
2026/06/24 14:31:45 ale solved Problem0025 (Line: 5)
2026/06/24 14:21:35 ale solved Problem0020 (Line: 12)
2026/06/24 14:12:45 ale solved Problem0023 (Line: 8)
2026/06/24 14:11:10 ale solved Problem0023 (Line: 9)
2026/06/24 14:05:55 ale solved Problem0035 (Line: 1)
2026/06/24 14:02:32 ale solved Problem0018 (Line: 7)
2026/06/24 13:58:39 ale solved Problem0019 (Line: 5)

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.