Recent Submissions

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)
2026/08/14 07:18:21 milin solved Problem0010 (Line: 12)
2026/08/14 07:16:28 milin solved Problem0001 (Line: 1)
2026/08/14 00:40:05 whateeeverman solved Problem0010 (Line: 8)
2026/08/14 00:30:09 whateeeverman solved Problem0009 (Line: 4)
2026/08/14 00:27:13 whateeeverman solved Problem0008 (Line: 3)
2026/08/14 00:25:28 whateeeverman solved Problem0007 (Line: 3)
2026/08/14 00:23:08 whateeeverman solved Problem0006 (Line: 3)
2026/08/14 00:22:37 whateeeverman solved Problem0005 (Line: 1)
2026/08/14 00:22:08 whateeeverman solved Problem0004 (Line: 3)
2026/08/14 00:21:05 whateeeverman solved Problem0003 (Line: 1)
2026/08/14 00:14:33 whateeeverman solved Problem0001 (Line: 1)
2026/08/14 00:13:39 whateeeverman solved Problem0002 (Line: 1)
2026/08/13 20:19:26 AltTTT solved Problem0013 (Line: 7)
2026/08/13 20:13:38 AltTTT solved Problem0013 (Line: 9)
2026/08/13 19:47:43 AltTTT solved Problem0012 (Line: 26)
2026/08/13 19:31:18 AltTTT solved Problem0011 (Line: 14)
2026/08/13 18:52:19 AltTTT solved Problem0010 (Line: 7)
2026/08/13 18:43:05 AltTTT solved Problem0009 (Line: 4)
2026/08/13 18:41:19 AltTTT solved Problem0008 (Line: 3)
2026/08/13 18:37:33 AltTTT solved Problem0007 (Line: 3)
2026/08/13 18:36:47 AltTTT solved Problem0006 (Line: 3)
2026/08/13 18:35:38 AltTTT solved Problem0005 (Line: 1)
2026/08/13 18:35:15 AltTTT solved Problem0004 (Line: 3)
2026/08/13 18:34:55 AltTTT solved Problem0003 (Line: 1)
2026/08/13 18:29:17 AltTTT solved Problem0002 (Line: 1)

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.