Recent Submissions

2026/09/11 17:59:00 kiwi solved Problem0005 (Line: 1)
2026/09/11 17:57:45 kiwi solved Problem0004 (Line: 3)
2026/09/11 17:55:50 kiwi solved Problem0003 (Line: 1)
2026/09/11 17:53:57 kiwi solved Problem0002 (Line: 1)
2026/09/11 17:51:02 hulgas solved Problem0064 (Line: 9)
2026/09/11 17:49:52 hulgas solved Problem0065 (Line: 16)
2026/09/11 17:48:09 hulgas solved Problem0063 (Line: 4)
2026/09/11 17:45:47 hulgas solved Problem0062 (Line: 2)
2026/09/11 17:45:07 hulgas solved Problem0061 (Line: 2)
2026/09/11 17:29:40 hulgas solved Problem0073 (Line: 30)
2026/09/11 16:28:36 hulgas solved Problem0081 (Line: 7)
2026/09/11 16:22:58 hulgas solved Problem0066 (Line: 10)
2026/09/11 15:49:10 hulgas solved Problem0058 (Line: 45)
2026/09/11 15:36:10 hulgas solved Problem0052 (Line: 9)
2026/09/11 15:22:12 hulgas solved Problem0050 (Line: 2)
2026/09/11 15:21:22 hulgas solved Problem0049 (Line: 1)
2026/09/11 15:18:49 hulgas solved Problem0041 (Line: 13)
2026/09/11 15:08:30 hulgas solved Problem0037 (Line: 6)
2026/09/11 14:50:04 kiwi solved Problem0001 (Line: 1)
2026/09/11 14:48:22 hulgas solved Problem0028 (Line: 90)
2026/09/11 14:41:12 hulgas solved Problem0027 (Line: 15)
2026/09/11 14:37:19 hulgas solved Problem0025 (Line: 7)
2026/09/11 14:28:09 hulgas solved Problem0024 (Line: 25)
2026/09/11 14:18:37 hulgas solved Problem0020 (Line: 100)
2026/09/11 12:09:05 hulgas solved Problem0019 (Line: 10)
2026/09/11 12:07:14 hulgas solved Problem0018 (Line: 7)
2026/09/11 10:33:20 hulgas solved Problem0008 (Line: 3)
2026/09/10 19:08:23 hulgas solved Problem0085 (Line: 9)
2026/09/10 19:06:11 hulgas solved Problem0080 (Line: 2)
2026/09/10 18:52:57 hulgas solved Problem0016 (Line: 1)
2026/09/10 18:24:17 hulgas solved Problem0078 (Line: 1)
2026/09/10 18:17:27 hulgas solved Problem0045 (Line: 1)
2026/09/10 18:17:09 hulgas solved Problem0035 (Line: 1)
2026/09/10 18:09:14 hulgas solved Problem0007 (Line: 3)
2026/09/10 18:08:40 hulgas solved Problem0006 (Line: 3)
2026/09/10 18:08:08 hulgas solved Problem0005 (Line: 1)
2026/09/10 18:07:55 hulgas solved Problem0004 (Line: 3)
2026/09/10 18:07:27 hulgas solved Problem0003 (Line: 1)
2026/09/10 18:06:50 hulgas solved Problem0002 (Line: 1)
2026/09/10 18:06:35 hulgas solved Problem0017 (Line: 2)
2026/09/10 18:02:12 hulgas solved Problem0023 (Line: 9)
2026/09/10 17:56:28 hulgas solved Problem0001 (Line: 1)
2026/09/08 08:18:36 owoovo solved Problem0018 (Line: 6)
2026/09/08 08:15:33 owoovo solved Problem0018 (Line: 8)
2026/09/07 08:06:29 SeptaCube solved Problem0020 (Line: 12)
2026/09/07 08:04:53 SeptaCube solved Problem0019 (Line: 5)
2026/09/07 08:03:21 SeptaCube solved Problem0018 (Line: 7)
2026/09/07 08:02:44 SeptaCube solved Problem0017 (Line: 2)
2026/09/07 08:02:10 SeptaCube solved Problem0016 (Line: 1)
2026/09/07 08:01:46 SeptaCube solved Problem0015 (Line: 16)

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.