Recent Submissions

2024/07/25 23:54:26 LennyS solved Problem0019 (Line: 5)
2024/07/25 23:50:04 LennyS solved Problem0019 (Line: 10)
2024/07/25 23:33:03 LennyS solved Problem0018 (Line: 7)
2024/07/25 23:30:20 LennyS solved Problem0018 (Line: 12)
2024/07/25 23:24:01 LennyS solved Problem0017 (Line: 2)
2024/07/25 23:23:13 LennyS solved Problem0016 (Line: 1)
2024/07/25 23:22:20 LennyS solved Problem0015 (Line: 15)
2024/07/25 23:04:28 LennyS solved Problem0014 (Line: 11)
2024/07/25 22:55:06 LennyS solved Problem0010 (Line: 6)
2024/07/25 22:50:28 LennyS solved Problem0013 (Line: 9)
2024/07/25 22:42:37 LennyS solved Problem0013 (Line: 10)
2024/07/25 21:43:23 LennyS solved Problem0013 (Line: 9)
2024/07/25 21:27:54 LennyS solved Problem0013 (Line: 10)
2024/07/25 21:12:09 LennyS solved Problem0013 (Line: 11)
2024/07/25 20:54:08 LennyS solved Problem0012 (Line: 11)
2024/07/25 20:49:15 LennyS solved Problem0011 (Line: 11)
2024/07/25 19:50:59 LennyS solved Problem0010 (Line: 7)
2024/07/25 19:32:48 LennyS solved Problem0010 (Line: 8)
2024/07/25 19:27:41 LennyS solved Problem0009 (Line: 4)
2024/07/25 19:23:26 LennyS solved Problem0008 (Line: 3)
2024/07/25 19:21:54 LennyS solved Problem0007 (Line: 3)
2024/07/25 19:18:20 LennyS solved Problem0006 (Line: 3)
2024/07/25 19:16:55 LennyS solved Problem0005 (Line: 1)
2024/07/25 19:11:16 LennyS solved Problem0004 (Line: 3)
2024/07/25 19:10:16 LennyS solved Problem0003 (Line: 1)
2024/07/25 19:09:33 LennyS solved Problem0002 (Line: 1)
2024/07/25 19:08:53 LennyS solved Problem0001 (Line: 1)
2024/07/25 18:12:37 Gold14526 solved Problem0019 (Line: 5)
2024/07/25 18:08:52 Gold14526 solved Problem0017 (Line: 2)
2024/07/25 18:07:46 Gold14526 solved Problem0013 (Line: 7)
2024/07/25 17:59:59 Gold14526 solved Problem0046 (Line: 4)
2024/07/25 17:22:25 Gold14526 solved Problem0053 (Line: 3)
2024/07/25 17:20:15 Gold14526 solved Problem0045 (Line: 1)
2024/07/25 17:18:59 Gold14526 solved Problem0051 (Line: 3)
2024/07/25 17:13:18 Gold14526 solved Problem0035 (Line: 1)
2024/07/25 17:12:29 Gold14526 solved Problem0016 (Line: 1)
2024/07/25 17:11:24 Gold14526 solved Problem0001 (Line: 1)
2024/07/24 22:17:10 betago solved Problem0007 (Line: 3)
2024/07/24 22:13:22 betago solved Problem0006 (Line: 3)
2024/07/24 22:12:03 Duke solved Problem0064 (Line: 9)
2024/07/24 22:11:50 betago solved Problem0006 (Line: 4)
2024/07/24 22:10:27 betago solved Problem0005 (Line: 1)
2024/07/24 22:03:30 betago solved Problem0004 (Line: 3)
2024/07/24 21:59:23 betago solved Problem0003 (Line: 1)
2024/07/24 21:57:49 betago solved Problem0002 (Line: 1)
2024/07/24 21:56:27 betago solved Problem0001 (Line: 1)
2024/07/24 12:37:36 kenken714 solved Problem0080 (Line: 2)
2024/07/24 12:36:29 kenken714 solved Problem0069 (Line: 2)
2024/07/24 07:36:12 norikame solved Problem0020 (Line: 12)
2024/07/24 07:28:53 norikame solved Problem0019 (Line: 6)

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.