Recent Submissions

2026/07/01 21:35:38 calcogen solved Problem0079 (Line: 5)
2026/07/01 21:32:43 calcogen solved Problem0081 (Line: 7)
2026/07/01 21:22:17 calcogen solved Problem0081 (Line: 8)
2026/07/01 21:20:15 calcogen solved Problem0081 (Line: 9)
2026/07/01 20:48:07 calcogen solved Problem0025 (Line: 5)
2026/07/01 20:44:54 calcogen solved Problem0023 (Line: 5)
2026/07/01 20:43:53 calcogen solved Problem0023 (Line: 6)
2026/07/01 19:56:40 calcogen solved Problem0010 (Line: 6)
2026/07/01 19:56:29 calcogen solved Problem0010 (Line: 7)
2026/07/01 19:49:57 calcogen solved Problem0018 (Line: 7)
2026/07/01 19:48:23 calcogen solved Problem0009 (Line: 4)
2026/07/01 18:36:36 calcogen solved Problem0010 (Line: 7)
2026/07/01 18:27:15 calcogen solved Problem0008 (Line: 3)
2026/07/01 18:24:57 calcogen solved Problem0080 (Line: 2)
2026/07/01 18:22:41 calcogen solved Problem0050 (Line: 2)
2026/07/01 18:21:52 calcogen solved Problem0017 (Line: 2)
2026/07/01 18:21:13 calcogen solved Problem0007 (Line: 3)
2026/07/01 18:20:49 calcogen solved Problem0006 (Line: 3)
2026/07/01 18:20:09 calcogen solved Problem0078 (Line: 1)
2026/07/01 18:19:48 calcogen solved Problem0049 (Line: 1)
2026/07/01 18:19:27 calcogen solved Problem0035 (Line: 1)
2026/07/01 18:18:50 calcogen solved Problem0016 (Line: 1)
2026/07/01 18:18:17 calcogen solved Problem0045 (Line: 1)
2026/07/01 14:37:11 calcogen solved Problem0005 (Line: 1)
2026/07/01 14:23:29 calcogen solved Problem0004 (Line: 3)
2026/07/01 14:23:08 calcogen solved Problem0003 (Line: 1)
2026/07/01 14:22:36 calcogen solved Problem0002 (Line: 1)
2026/07/01 14:22:01 calcogen solved Problem0001 (Line: 1)
2026/06/30 18:14:08 ale solved Problem0041 (Line: 13)
2026/06/30 18:08:51 ale solved Problem0044 (Line: 8)
2026/06/29 22:30:39 hashkitten solved Problem0050 (Line: 2)
2026/06/29 22:28:30 hashkitten solved Problem0049 (Line: 1)
2026/06/29 22:28:13 hashkitten solved Problem0052 (Line: 3)
2026/06/29 22:23:12 hashkitten solved Problem0078 (Line: 1)
2026/06/29 22:20:00 hashkitten solved Problem0039 (Line: 4)
2026/06/29 20:20:12 hashkitten solved Problem0037 (Line: 6)
2026/06/29 20:19:18 hashkitten solved Problem0036 (Line: 3)
2026/06/29 20:17:05 hashkitten solved Problem0035 (Line: 1)
2026/06/29 20:09:40 hashkitten solved Problem0017 (Line: 2)
2026/06/29 20:09:22 hashkitten solved Problem0016 (Line: 1)
2026/06/29 20:05:10 hashkitten solved Problem0008 (Line: 3)
2026/06/29 20:03:25 hashkitten solved Problem0007 (Line: 3)
2026/06/29 20:03:02 hashkitten solved Problem0006 (Line: 3)
2026/06/29 20:02:34 hashkitten solved Problem0005 (Line: 1)
2026/06/29 20:02:15 hashkitten solved Problem0004 (Line: 3)
2026/06/29 20:01:59 hashkitten solved Problem0003 (Line: 1)
2026/06/29 20:01:37 hashkitten solved Problem0002 (Line: 1)
2026/06/29 20:01:25 hashkitten solved Problem0001 (Line: 1)
2026/06/29 19:02:49 ale solved Problem0083 (Line: 21)
2026/06/29 18:49:51 ale solved Problem0085 (Line: 12)

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.