Recent Submissions

2026/07/15 16:59:25 sato2718 solved Problem0055 (Line: 35)
2026/07/15 16:34:17 sato2718 solved Problem0042 (Line: 2)
2026/07/15 16:16:44 sato2718 solved Problem0073 (Line: 15)
2026/07/15 16:11:32 sato2718 solved Problem0079 (Line: 5)
2026/07/15 16:10:26 sato2718 solved Problem0071 (Line: 10)
2026/07/15 16:05:43 sato2718 solved Problem0018 (Line: 7)
2026/07/15 16:03:30 sato2718 solved Problem0071 (Line: 11)
2026/07/15 15:52:14 sato2718 solved Problem0027 (Line: 15)
2026/07/15 15:51:36 sato2718 solved Problem0026 (Line: 10)
2026/07/15 15:43:03 sato2718 solved Problem0081 (Line: 8)
2026/07/15 15:41:46 sato2718 solved Problem0082 (Line: 12)
2026/07/15 15:28:03 sato2718 solved Problem0066 (Line: 10)
2026/07/15 15:24:23 sato2718 solved Problem0067 (Line: 9)
2026/07/15 15:16:46 sato2718 solved Problem0083 (Line: 25)
2026/07/15 13:15:09 sato2718 solved Problem0065 (Line: 15)
2026/07/15 13:08:56 sato2718 solved Problem0054 (Line: 21)
2026/07/15 12:56:01 sato2718 solved Problem0047 (Line: 20)
2026/07/15 12:47:57 sato2718 solved Problem0028 (Line: 19)
2026/07/14 04:04:40 holuaia solved Problem0010 (Line: 7)
2026/07/14 03:59:12 holuaia solved Problem0009 (Line: 4)
2026/07/14 03:58:30 holuaia solved Problem0008 (Line: 3)
2026/07/14 03:55:56 holuaia solved Problem0007 (Line: 3)
2026/07/14 03:54:29 holuaia solved Problem0006 (Line: 3)
2026/07/14 03:53:57 holuaia solved Problem0005 (Line: 1)
2026/07/14 03:53:40 holuaia solved Problem0004 (Line: 3)
2026/07/14 03:53:12 holuaia solved Problem0003 (Line: 1)
2026/07/14 03:52:53 holuaia solved Problem0002 (Line: 1)
2026/07/14 03:52:21 holuaia solved Problem0001 (Line: 1)
2026/07/09 21:06:07 sato2718 solved Problem0038 (Line: 6)
2026/07/09 21:04:18 sato2718 solved Problem0064 (Line: 8)
2026/07/09 21:00:06 sato2718 solved Problem0034 (Line: 7)
2026/07/09 20:48:21 sato2718 solved Problem0069 (Line: 2)
2026/07/09 20:44:07 sato2718 solved Problem0048 (Line: 9)
2026/07/09 20:39:34 sato2718 solved Problem0085 (Line: 11)
2026/07/09 20:37:43 sato2718 solved Problem0079 (Line: 6)
2026/07/09 20:35:57 sato2718 solved Problem0063 (Line: 3)
2026/07/09 20:34:34 sato2718 solved Problem0053 (Line: 3)
2026/07/09 20:28:23 sato2718 solved Problem0068 (Line: 5)
2026/07/09 20:14:42 sato2718 solved Problem0046 (Line: 7)
2026/07/09 20:12:59 sato2718 solved Problem0044 (Line: 7)
2026/07/09 16:46:51 sato2718 solved Problem0037 (Line: 6)
2026/07/09 16:41:36 sato2718 solved Problem0032 (Line: 9)
2026/07/09 16:33:22 sato2718 solved Problem0025 (Line: 6)
2026/07/09 16:32:13 sato2718 solved Problem0024 (Line: 17)
2026/07/09 16:19:50 sato2718 solved Problem0013 (Line: 10)
2026/07/09 15:21:49 sato2718 solved Problem0020 (Line: 12)
2026/07/09 15:20:58 sato2718 solved Problem0020 (Line: 13)
2026/07/09 15:17:58 sato2718 solved Problem0023 (Line: 6)
2026/07/09 15:12:02 sato2718 solved Problem0080 (Line: 2)
2026/07/09 15:11:22 sato2718 solved Problem0015 (Line: 17)

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.