Recent Submissions

2024/10/22 15:28:49 34 solved Problem0039 (Line: 10)
2024/10/22 15:26:41 34 solved Problem0038 (Line: 5)
2024/10/22 15:21:47 34 solved Problem0037 (Line: 8)
2024/10/22 15:20:34 34 solved Problem0036 (Line: 3)
2024/10/22 15:19:44 34 solved Problem0034 (Line: 7)
2024/10/22 14:20:52 34 solved Problem0032 (Line: 8)
2024/10/22 14:03:51 34 solved Problem0029 (Line: 12)
2024/10/22 13:55:13 34 solved Problem0028 (Line: 19)
2024/10/22 13:48:21 34 solved Problem0035 (Line: 1)
2024/10/22 13:42:50 34 solved Problem0069 (Line: 3)
2024/10/22 13:35:45 Aaa solved Problem0007 (Line: 3)
2024/10/22 13:35:02 Aaa solved Problem0007 (Line: 3)
2024/10/21 15:06:21 34 solved Problem0079 (Line: 5)
2024/10/21 15:02:31 34 solved Problem0078 (Line: 1)
2024/10/21 15:01:12 34 solved Problem0080 (Line: 2)
2024/10/21 15:00:11 34 solved Problem0081 (Line: 9)
2024/10/19 11:42:05 34 solved Problem0081 (Line: 10)
2024/10/19 11:39:18 34 solved Problem0082 (Line: 12)
2024/10/19 11:29:50 34 solved Problem0085 (Line: 9)
2024/10/19 11:23:36 34 solved Problem0027 (Line: 15)
2024/10/19 11:20:40 34 solved Problem0025 (Line: 6)
2024/10/19 11:19:30 34 solved Problem0023 (Line: 6)
2024/10/19 11:18:44 34 solved Problem0024 (Line: 27)
2024/10/19 11:09:23 Aaa solved Problem0006 (Line: 3)
2024/10/19 11:03:00 34 solved Problem0022 (Line: 15)
2024/10/19 11:01:16 Aaa solved Problem0005 (Line: 1)
2024/10/19 10:59:05 Aaa solved Problem0004 (Line: 3)
2024/10/19 10:57:47 Aaa solved Problem0003 (Line: 1)
2024/10/19 10:57:15 Aaa solved Problem0002 (Line: 1)
2024/10/19 10:56:51 Aaa solved Problem0001 (Line: 1)
2024/10/19 10:53:28 34 solved Problem0019 (Line: 5)
2024/10/19 10:52:17 34 solved Problem0018 (Line: 7)
2024/10/19 10:51:07 34 solved Problem0017 (Line: 2)
2024/10/19 10:49:58 34 solved Problem0016 (Line: 1)
2024/10/18 15:29:43 34 solved Problem0014 (Line: 11)
2024/10/18 15:01:02 34 solved Problem0013 (Line: 10)
2024/10/18 14:55:54 34 solved Problem0012 (Line: 11)
2024/10/18 14:52:45 34 solved Problem0011 (Line: 11)
2024/10/18 14:20:30 34 solved Problem0010 (Line: 7)
2024/10/18 14:08:57 34 solved Problem0009 (Line: 4)
2024/10/18 14:08:10 34 solved Problem0008 (Line: 3)
2024/10/18 14:07:21 34 solved Problem0007 (Line: 3)
2024/10/18 14:06:54 Player solved Problem0013 (Line: 12)
2024/10/18 14:06:42 34 solved Problem0006 (Line: 3)
2024/10/18 14:05:50 34 solved Problem0005 (Line: 1)
2024/10/18 14:05:36 34 solved Problem0004 (Line: 3)
2024/10/18 14:05:10 34 solved Problem0003 (Line: 1)
2024/10/18 14:05:00 34 solved Problem0002 (Line: 1)
2024/10/18 14:04:35 34 solved Problem0001 (Line: 1)
2024/10/18 13:27:12 cici0729 solved Problem0001 (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.