Recent Submissions

2025/06/26 00:18:04 tmep solved Problem0061 (Line: 2)
2025/06/26 00:12:11 tmep solved Problem0069 (Line: 4)
2025/06/26 00:02:59 tmep solved Problem0069 (Line: 3)
2025/06/25 23:53:48 tmep solved Problem0080 (Line: 2)
2025/06/25 23:52:54 tmep solved Problem0080 (Line: 3)
2025/06/25 23:19:01 tmep solved Problem0050 (Line: 2)
2025/06/25 23:18:33 tmep solved Problem0049 (Line: 1)
2025/06/25 23:16:21 tmep solved Problem0078 (Line: 1)
2025/06/25 23:15:40 tmep solved Problem0045 (Line: 1)
2025/06/25 15:33:34 NaraFluorine solved Problem0083 (Line: 21)
2025/06/25 04:19:43 tmep solved Problem0023 (Line: 6)
2025/06/25 04:06:59 tmep solved Problem0013 (Line: 9)
2025/06/24 22:42:59 tmep solved Problem0009 (Line: 4)
2025/06/24 22:20:35 tmep solved Problem0012 (Line: 11)
2025/06/24 21:56:39 tmep solved Problem0011 (Line: 11)
2025/06/24 21:50:35 tmep solved Problem0010 (Line: 6)
2025/06/24 21:29:26 tmep solved Problem0009 (Line: 4)
2025/06/24 21:23:16 tmep solved Problem0008 (Line: 3)
2025/06/24 21:15:23 tmep solved Problem0035 (Line: 1)
2025/06/24 21:14:39 tmep solved Problem0017 (Line: 2)
2025/06/24 21:13:26 tmep solved Problem0016 (Line: 1)
2025/06/24 19:43:10 tmep solved Problem0007 (Line: 3)
2025/06/24 19:39:54 tmep solved Problem0006 (Line: 3)
2025/06/24 19:38:17 tmep solved Problem0005 (Line: 1)
2025/06/24 19:37:45 tmep solved Problem0003 (Line: 1)
2025/06/24 19:37:17 tmep solved Problem0002 (Line: 1)
2025/06/24 19:36:37 tmep solved Problem0004 (Line: 3)
2025/06/24 19:05:51 tmep solved Problem0001 (Line: 1)
2025/06/23 23:01:29 MIKI solved Problem0042 (Line: 28)
2025/06/23 09:27:14 CoconutIsNut solved Problem0065 (Line: 8)
2025/06/23 09:05:45 CoconutIsNut solved Problem0082 (Line: 10)
2025/06/22 16:21:28 CoconutIsNut solved Problem0055 (Line: 32)
2025/06/22 15:54:35 CoconutIsNut solved Problem0048 (Line: 4)
2025/06/22 15:24:30 CoconutIsNut solved Problem0081 (Line: 5)
2025/06/22 15:22:06 CoconutIsNut solved Problem0081 (Line: 6)
2025/06/22 15:21:48 CoconutIsNut solved Problem0081 (Line: 8)
2025/06/22 15:21:14 CoconutIsNut solved Problem0081 (Line: 7)
2025/06/22 15:19:20 CoconutIsNut solved Problem0081 (Line: 7)
2025/06/22 14:24:31 CoconutIsNut solved Problem0046 (Line: 4)
2025/06/22 14:22:45 CoconutIsNut solved Problem0046 (Line: 5)
2025/06/22 14:20:05 CoconutIsNut solved Problem0085 (Line: 6)
2025/06/22 14:15:18 CoconutIsNut solved Problem0047 (Line: 14)
2025/06/22 14:06:15 CoconutIsNut solved Problem0033 (Line: 15)
2025/06/22 14:03:33 CoconutIsNut solved Problem0033 (Line: 18)
2025/06/22 13:45:37 CoconutIsNut solved Problem0071 (Line: 9)
2025/06/21 15:54:14 uwagjaynoi solved Problem0045 (Line: 1)
2025/06/21 15:54:02 uwagjaynoi solved Problem0049 (Line: 1)
2025/06/21 02:32:10 testtesttest solved Problem0002 (Line: 1)
2025/06/21 02:31:53 testtesttest solved Problem0001 (Line: 1)
2025/06/20 21:52:56 MIKI solved Problem0074 (Line: 22)

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.