Recent Submissions

2025/01/16 16:26:26 LHF solved Problem0023 (Line: 5)
2025/01/16 16:21:04 LHF solved Problem0053 (Line: 3)
2025/01/16 16:14:25 LHF solved Problem0035 (Line: 1)
2025/01/16 16:13:56 LHF solved Problem0017 (Line: 2)
2025/01/16 16:08:26 LHF solved Problem0080 (Line: 2)
2025/01/16 16:07:02 LHF solved Problem0053 (Line: 5)
2025/01/16 15:59:10 LHF solved Problem0045 (Line: 1)
2025/01/16 15:58:56 LHF solved Problem0049 (Line: 1)
2025/01/16 15:58:28 LHF solved Problem0078 (Line: 1)
2025/01/16 15:57:24 LHF solved Problem0052 (Line: 3)
2025/01/16 10:40:57 T_tani solved Problem0024 (Line: 17)
2025/01/16 10:36:57 T_tani solved Problem0024 (Line: 25)
2025/01/16 10:18:43 LHF solved Problem0016 (Line: 1)
2025/01/15 19:17:41 inksamurai solved Problem0038 (Line: 11)
2025/01/15 18:17:35 inksamurai solved Problem0052 (Line: 4)
2025/01/15 16:12:51 T_tani solved Problem0022 (Line: 13)
2025/01/15 15:53:01 T_tani solved Problem0042 (Line: 2)
2025/01/15 15:46:26 T_tani solved Problem0015 (Line: 19)
2025/01/15 15:04:56 T_tani solved Problem0048 (Line: 7)
2025/01/15 13:31:58 T_tani solved Problem0026 (Line: 9)
2025/01/15 13:31:28 T_tani solved Problem0026 (Line: 10)
2025/01/15 13:23:29 T_tani solved Problem0026 (Line: 13)
2025/01/15 13:20:52 T_tani solved Problem0026 (Line: 13)
2025/01/13 23:43:41 T_tani solved Problem0041 (Line: 13)
2025/01/13 23:21:14 T_tani solved Problem0083 (Line: 16)
2025/01/13 23:20:22 T_tani solved Problem0083 (Line: 16)
2025/01/13 23:10:20 T_tani solved Problem0054 (Line: 24)
2025/01/13 22:48:15 T_tani solved Problem0031 (Line: 21)
2025/01/13 22:48:04 T_tani solved Problem0030 (Line: 21)
2025/01/13 22:47:54 T_tani solved Problem0029 (Line: 21)
2025/01/13 20:02:54 inksamurai solved Problem0024 (Line: 22)
2025/01/13 20:01:37 inksamurai solved Problem0024 (Line: 23)
2025/01/13 19:59:09 inksamurai solved Problem0024 (Line: 25)
2025/01/13 06:01:19 stukenvitalii solved Problem0009 (Line: 4)
2025/01/13 03:31:20 stukenvitalii solved Problem0053 (Line: 3)
2025/01/12 22:20:59 VeilofSummer solved Problem0009 (Line: 5)
2025/01/12 17:36:06 VeilofSummer solved Problem0008 (Line: 3)
2025/01/12 17:30:54 VeilofSummer solved Problem0007 (Line: 3)
2025/01/12 05:18:38 inksamurai solved Problem0037 (Line: 6)
2025/01/12 01:48:21 didymium860 solved Problem0054 (Line: 13)
2025/01/12 01:38:34 VeilofSummer solved Problem0006 (Line: 3)
2025/01/12 01:37:47 VeilofSummer solved Problem0005 (Line: 1)
2025/01/12 01:37:00 VeilofSummer solved Problem0004 (Line: 3)
2025/01/12 01:36:35 VeilofSummer solved Problem0003 (Line: 1)
2025/01/12 01:26:16 VeilofSummer solved Problem0002 (Line: 1)
2025/01/12 01:25:48 VeilofSummer solved Problem0001 (Line: 1)
2025/01/11 19:49:53 inksamurai solved Problem0050 (Line: 2)
2025/01/11 19:47:59 inksamurai solved Problem0036 (Line: 3)
2025/01/11 18:32:28 T_tani solved Problem0074 (Line: 6)
2025/01/11 18:31:18 T_tani solved Problem0074 (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.