Recent Submissions

2025/11/13 13:30:59 manuo solved Problem0014 (Line: 14)
2025/11/12 23:56:11 Nand_gate solved Problem0010 (Line: 8)
2025/11/12 23:30:28 Nand_gate solved Problem0009 (Line: 4)
2025/11/12 23:04:36 Nand_gate solved Problem0008 (Line: 3)
2025/11/12 21:11:12 manuo solved Problem0013 (Line: 12)
2025/11/12 19:45:01 manuo solved Problem0012 (Line: 32)
2025/11/12 19:36:31 Nand_gate solved Problem0007 (Line: 3)
2025/11/12 19:31:56 manuo solved Problem0011 (Line: 11)
2025/11/12 19:25:20 manuo solved Problem0010 (Line: 7)
2025/11/12 19:19:36 manuo solved Problem0009 (Line: 4)
2025/11/12 19:17:29 manuo solved Problem0009 (Line: 5)
2025/11/12 19:16:27 Nand_gate solved Problem0006 (Line: 3)
2025/11/12 19:14:21 Nand_gate solved Problem0005 (Line: 1)
2025/11/12 18:17:50 Nand_gate solved Problem0004 (Line: 3)
2025/11/12 18:03:13 Nand_gate solved Problem0003 (Line: 1)
2025/11/12 17:53:07 Nand_gate solved Problem0002 (Line: 1)
2025/11/12 17:51:25 Nand_gate solved Problem0001 (Line: 1)
2025/11/12 15:48:15 manuo solved Problem0008 (Line: 3)
2025/11/12 15:46:15 manuo solved Problem0007 (Line: 3)
2025/11/12 15:44:28 manuo solved Problem0006 (Line: 3)
2025/11/12 15:43:53 manuo solved Problem0005 (Line: 1)
2025/11/12 15:41:01 manuo solved Problem0004 (Line: 3)
2025/11/12 15:40:27 manuo solved Problem0003 (Line: 1)
2025/11/12 15:40:11 manuo solved Problem0002 (Line: 1)
2025/11/12 15:35:47 manuo solved Problem0001 (Line: 1)
2025/11/12 15:13:30 larry_pussy solved Problem0011 (Line: 33)
2025/11/12 06:16:57 larry_pussy solved Problem0008 (Line: 4)
2025/11/12 04:56:03 larry_pussy solved Problem0007 (Line: 3)
2025/11/12 04:55:07 larry_pussy solved Problem0006 (Line: 3)
2025/11/12 04:54:14 larry_pussy solved Problem0005 (Line: 1)
2025/11/08 20:16:20 bitamin solved Problem0008 (Line: 3)
2025/11/08 20:00:21 masa0428 solved Problem0005 (Line: 1)
2025/11/08 19:54:12 masa0428 solved Problem0004 (Line: 3)
2025/11/08 19:53:09 masa0428 solved Problem0003 (Line: 1)
2025/11/08 19:51:58 masa0428 solved Problem0002 (Line: 1)
2025/11/08 19:50:42 masa0428 solved Problem0001 (Line: 1)
2025/11/08 19:49:45 hoppii solved Problem0044 (Line: 8)
2025/11/08 19:20:30 bitamin solved Problem0007 (Line: 3)
2025/11/08 19:10:44 bitamin solved Problem0006 (Line: 3)
2025/11/08 19:06:42 bitamin solved Problem0005 (Line: 1)
2025/11/08 19:02:32 bitamin solved Problem0004 (Line: 3)
2025/11/08 19:01:42 bitamin solved Problem0003 (Line: 1)
2025/11/08 19:01:21 bitamin solved Problem0002 (Line: 1)
2025/11/08 18:59:18 bitamin solved Problem0001 (Line: 1)
2025/10/27 16:02:48 nanashi030 solved Problem0023 (Line: 6)
2025/10/27 15:52:18 nanashi030 solved Problem0022 (Line: 12)
2025/10/27 15:49:09 nanashi030 solved Problem0022 (Line: 13)
2025/10/26 23:45:35 ambiguous solved Problem0008 (Line: 3)
2025/10/26 23:42:05 ambiguous solved Problem0007 (Line: 3)
2025/10/26 23:39:10 ambiguous solved Problem0006 (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.