Recent Submissions

2024/04/30 23:39:15 Murasame solved Problem0045 (Line: 1)
2024/04/30 23:38:12 Murasame solved Problem0050 (Line: 2)
2024/04/30 23:37:45 Murasame solved Problem0049 (Line: 1)
2024/04/30 23:28:43 Murasame solved Problem0017 (Line: 2)
2024/04/30 23:27:57 Murasame solved Problem0016 (Line: 1)
2024/04/30 23:24:47 Murasame solved Problem0018 (Line: 7)
2024/04/30 23:10:25 Murasame solved Problem0009 (Line: 4)
2024/04/30 23:03:12 Murasame solved Problem0008 (Line: 3)
2024/04/30 22:54:43 Murasame solved Problem0007 (Line: 3)
2024/04/30 22:54:05 Murasame solved Problem0006 (Line: 3)
2024/04/30 22:53:27 Murasame solved Problem0005 (Line: 1)
2024/04/30 22:52:56 Murasame solved Problem0004 (Line: 3)
2024/04/30 22:52:15 Murasame solved Problem0003 (Line: 1)
2024/04/30 22:51:43 Murasame solved Problem0002 (Line: 1)
2024/04/30 22:51:27 Murasame solved Problem0001 (Line: 1)
2024/04/30 18:24:48 nasubi24 solved Problem0051 (Line: 4)
2024/04/30 18:19:43 nasubi24 solved Problem0062 (Line: 2)
2024/04/30 18:15:02 nasubi24 solved Problem0052 (Line: 9)
2024/04/30 18:10:18 nasubi24 solved Problem0025 (Line: 7)
2024/04/30 18:07:57 nasubi24 solved Problem0024 (Line: 25)
2024/04/30 18:06:18 nasubi24 solved Problem0023 (Line: 9)
2024/04/30 18:05:03 nasubi24 solved Problem0018 (Line: 8)
2024/04/30 18:02:46 nasubi24 solved Problem0019 (Line: 5)
2024/04/30 18:02:25 nasubi24 solved Problem0019 (Line: 6)
2024/04/30 18:01:43 nasubi24 solved Problem0020 (Line: 12)
2024/04/30 17:59:16 nasubi24 solved Problem0016 (Line: 1)
2024/04/30 17:58:05 nasubi24 solved Problem0016 (Line: 5)
2024/04/30 17:57:13 nasubi24 solved Problem0009 (Line: 4)
2024/04/30 17:49:18 nasubi24 solved Problem0012 (Line: 35)
2024/04/30 17:37:43 nasubi24 solved Problem0035 (Line: 1)
2024/04/30 17:37:22 nasubi24 solved Problem0053 (Line: 26)
2024/04/30 17:33:08 nasubi24 solved Problem0010 (Line: 11)
2024/04/30 17:15:07 nasubi24 solved Problem0008 (Line: 3)
2024/04/30 17:12:50 nasubi24 solved Problem0007 (Line: 3)
2024/04/30 17:11:29 nasubi24 solved Problem0006 (Line: 3)
2024/04/30 17:10:56 nasubi24 solved Problem0005 (Line: 1)
2024/04/30 17:10:39 nasubi24 solved Problem0003 (Line: 1)
2024/04/30 17:10:27 nasubi24 solved Problem0004 (Line: 3)
2024/04/30 17:08:15 nasubi24 solved Problem0002 (Line: 1)
2024/04/30 17:07:56 nasubi24 solved Problem0001 (Line: 1)
2024/04/30 14:10:48 Cloudhead solved Problem0008 (Line: 3)
2024/04/29 22:14:29 Altotips solved Problem0066 (Line: 10)
2024/04/29 22:09:38 Altotips solved Problem0037 (Line: 8)
2024/04/29 21:46:35 Altotips solved Problem0065 (Line: 9)
2024/04/29 21:23:01 Altotips solved Problem0065 (Line: 16)
2024/04/29 16:24:10 Altotips solved Problem0064 (Line: 6)
2024/04/29 16:21:23 Altotips solved Problem0064 (Line: 8)
2024/04/29 16:17:43 Altotips solved Problem0064 (Line: 9)
2024/04/29 00:53:05 platypus solved Problem0048 (Line: 4)
2024/04/29 00:44:15 platypus solved Problem0048 (Line: 7)

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.