Recent Submissions

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)
2026/06/24 13:57:09 ale solved Problem0017 (Line: 2)
2026/06/24 13:55:19 ale solved Problem0016 (Line: 1)
2026/06/24 13:54:16 ale solved Problem0050 (Line: 2)
2026/06/24 11:44:17 ale solved Problem0013 (Line: 13)
2026/06/24 11:30:11 ale solved Problem0009 (Line: 4)
2026/06/23 17:52:27 ale solved Problem0012 (Line: 11)
2026/06/23 17:14:04 ale solved Problem0011 (Line: 11)
2026/06/23 17:12:30 ale solved Problem0011 (Line: 14)
2026/06/23 17:05:17 ale solved Problem0010 (Line: 7)
2026/06/23 16:50:04 ale solved Problem0008 (Line: 3)
2026/06/23 16:47:37 ale solved Problem0007 (Line: 3)
2026/06/23 16:46:47 ale solved Problem0007 (Line: 4)
2026/06/23 16:46:33 ale solved Problem0007 (Line: 5)
2026/06/23 16:33:20 ale solved Problem0006 (Line: 3)
2026/06/23 16:32:27 ale solved Problem0005 (Line: 1)
2026/06/23 16:31:54 ale solved Problem0004 (Line: 3)
2026/06/23 16:30:16 ale solved Problem0004 (Line: 4)
2026/06/23 16:28:16 ale solved Problem0003 (Line: 1)
2026/06/23 16:25:57 ale solved Problem0002 (Line: 1)
2026/06/23 08:55:22 awooo0000 solved Problem0012 (Line: 11)
2026/06/22 11:38:41 awooo0000 solved Problem0011 (Line: 11)
2026/06/22 11:30:04 awooo0000 solved Problem0010 (Line: 6)
2026/06/22 09:52:43 awooo0000 solved Problem0009 (Line: 4)
2026/06/22 05:35:31 cacampu solved Problem0033 (Line: 4)
2026/06/22 00:01:11 cacampu solved Problem0032 (Line: 8)
2026/06/21 10:09:47 takanen solved Problem0032 (Line: 8)
2026/06/21 00:26:59 cacampu solved Problem0033 (Line: 5)
2026/06/20 23:03:36 HishamAlshehri solved Problem0008 (Line: 3)

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.