Recent Submissions

2022/05/26 01:41:00 masaphys solved Problem0063 (Line: 3)
2022/05/26 01:39:05 masaphys solved Problem0062 (Line: 2)
2022/05/26 01:37:32 masaphys solved Problem0061 (Line: 2)
2022/05/26 01:35:03 masaphys solved Problem0061 (Line: 3)
2022/05/26 01:29:38 masaphys solved Problem0053 (Line: 3)
2022/05/26 01:27:52 masaphys solved Problem0052 (Line: 3)
2022/05/26 01:26:19 masaphys solved Problem0052 (Line: 4)
2022/05/26 01:22:39 masaphys solved Problem0051 (Line: 3)
2022/05/26 01:21:54 masaphys solved Problem0050 (Line: 2)
2022/05/26 01:21:10 masaphys solved Problem0049 (Line: 1)
2022/05/26 01:20:10 masaphys solved Problem0048 (Line: 4)
2022/05/26 01:15:44 masaphys solved Problem0048 (Line: 7)
2022/05/26 00:52:16 masaphys solved Problem0046 (Line: 6)
2022/05/26 00:51:14 masaphys solved Problem0046 (Line: 6)
2022/05/26 00:43:13 masaphys solved Problem0045 (Line: 1)
2022/05/26 00:42:31 masaphys solved Problem0038 (Line: 5)
2022/05/26 00:41:29 masaphys solved Problem0038 (Line: 6)
2022/05/26 00:39:00 masaphys solved Problem0037 (Line: 6)
2022/05/26 00:33:20 masaphys solved Problem0032 (Line: 8)
2022/05/26 00:30:22 masaphys solved Problem0032 (Line: 11)
2022/05/26 00:21:09 masaphys solved Problem0011 (Line: 11)
2022/05/25 15:50:26 TPSET solved Problem0007 (Line: 3)
2022/05/25 15:48:57 TPSET solved Problem0006 (Line: 3)
2022/05/25 15:48:12 TPSET solved Problem0005 (Line: 1)
2022/05/25 15:47:30 TPSET solved Problem0004 (Line: 3)
2022/05/25 15:46:50 TPSET solved Problem0003 (Line: 1)
2022/05/25 15:46:09 TPSET solved Problem0002 (Line: 1)
2022/05/25 15:44:05 TPSET solved Problem0001 (Line: 1)
2022/05/25 13:03:43 504Hz solved Problem0015 (Line: 21)
2022/05/25 10:57:51 pandamonium solved Problem0079 (Line: 6)
2022/05/25 08:21:50 504Hz solved Problem0025 (Line: 5)
2022/05/25 08:03:29 504Hz solved Problem0024 (Line: 25)
2022/05/25 00:14:06 masaphys solved Problem0022 (Line: 12)
2022/05/24 23:59:37 masaphys solved Problem0014 (Line: 11)
2022/05/24 23:37:40 masaphys solved Problem0013 (Line: 8)
2022/05/24 23:34:49 masaphys solved Problem0013 (Line: 10)
2022/05/24 23:30:08 masaphys solved Problem0013 (Line: 12)
2022/05/24 23:19:31 masaphys solved Problem0012 (Line: 11)
2022/05/24 22:37:26 masaphys solved Problem0085 (Line: 9)
2022/05/24 22:33:39 masaphys solved Problem0085 (Line: 10)
2022/05/24 22:22:24 masaphys solved Problem0085 (Line: 13)
2022/05/24 22:13:42 masaphys solved Problem0083 (Line: 21)
2022/05/24 22:03:43 masaphys solved Problem0081 (Line: 8)
2022/05/24 21:59:46 masaphys solved Problem0080 (Line: 2)
2022/05/24 21:59:23 masaphys solved Problem0080 (Line: 3)
2022/05/24 21:54:35 masaphys solved Problem0079 (Line: 5)
2022/05/24 21:53:14 masaphys solved Problem0078 (Line: 1)
2022/05/24 21:52:15 masaphys solved Problem0036 (Line: 3)
2022/05/24 21:51:18 masaphys solved Problem0035 (Line: 1)
2022/05/24 21:50:23 masaphys solved Problem0025 (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.