Recent Submissions

2026/08/18 17:16:21 zzk solved Problem0013 (Line: 8)
2026/08/18 08:27:29 zzk solved Problem0012 (Line: 11)
2026/08/18 08:12:58 zzk solved Problem0011 (Line: 11)
2026/08/18 08:08:30 zzk solved Problem0010 (Line: 6)
2026/08/18 07:25:07 zzk solved Problem0010 (Line: 7)
2026/08/18 07:22:01 zzk solved Problem0010 (Line: 8)
2026/08/18 07:17:36 zzk solved Problem0009 (Line: 4)
2026/08/18 07:16:21 zzk solved Problem0008 (Line: 3)
2026/08/18 05:52:19 zzk solved Problem0007 (Line: 3)
2026/08/18 05:48:17 zzk solved Problem0006 (Line: 3)
2026/08/18 05:47:30 zzk solved Problem0005 (Line: 1)
2026/08/18 05:44:38 zzk solved Problem0004 (Line: 3)
2026/08/18 05:43:34 zzk solved Problem0003 (Line: 1)
2026/08/18 05:43:00 zzk solved Problem0002 (Line: 1)
2026/08/18 05:42:10 zzk solved Problem0001 (Line: 1)
2026/08/18 00:52:51 omoioimo solved Problem0069 (Line: 2)
2026/08/18 00:42:22 omoioimo solved Problem0034 (Line: 7)
2026/08/18 00:33:49 cici0729 solved Problem0001 (Line: 1)
2026/08/15 06:23:26 milin solved Problem0052 (Line: 3)
2026/08/15 06:15:38 milin solved Problem0051 (Line: 4)
2026/08/15 06:13:14 milin solved Problem0050 (Line: 2)
2026/08/15 06:12:40 milin solved Problem0049 (Line: 1)
2026/08/15 06:12:23 milin solved Problem0045 (Line: 1)
2026/08/15 06:12:00 milin solved Problem0023 (Line: 8)
2026/08/15 06:03:14 milin solved Problem0010 (Line: 9)
2026/08/14 19:04:07 fakeYoki solved Problem0013 (Line: 10)
2026/08/14 12:02:52 milin solved Problem0078 (Line: 1)
2026/08/14 11:39:16 milin solved Problem0065 (Line: 9)
2026/08/14 11:35:17 milin solved Problem0064 (Line: 9)
2026/08/14 11:31:44 milin solved Problem0063 (Line: 3)
2026/08/14 11:29:43 milin solved Problem0062 (Line: 2)
2026/08/14 11:28:55 milin solved Problem0061 (Line: 2)
2026/08/14 11:23:16 milin solved Problem0025 (Line: 7)
2026/08/14 11:18:01 milin solved Problem0020 (Line: 12)
2026/08/14 11:03:32 milin solved Problem0009 (Line: 4)
2026/08/14 11:02:50 milin solved Problem0008 (Line: 3)
2026/08/14 11:02:08 milin solved Problem0007 (Line: 3)
2026/08/14 11:01:44 milin solved Problem0005 (Line: 1)
2026/08/14 11:01:34 milin solved Problem0006 (Line: 3)
2026/08/14 11:00:08 milin solved Problem0004 (Line: 3)
2026/08/14 10:59:46 milin solved Problem0003 (Line: 1)
2026/08/14 10:59:19 milin solved Problem0002 (Line: 1)
2026/08/14 10:25:16 milin solved Problem0018 (Line: 7)
2026/08/14 10:22:38 milin solved Problem0017 (Line: 2)
2026/08/14 10:16:05 milin solved Problem0016 (Line: 1)
2026/08/14 09:38:05 milin solved Problem0038 (Line: 6)
2026/08/14 09:33:19 milin solved Problem0037 (Line: 6)
2026/08/14 09:31:47 milin solved Problem0036 (Line: 3)
2026/08/14 09:28:41 milin solved Problem0035 (Line: 1)
2026/08/14 07:43:01 milin solved Problem0053 (Line: 4)

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.