Recent Submissions

2024/09/16 18:08:40 haske11 solved Problem0085 (Line: 9)
2024/09/10 10:09:25 ToniB solved Problem0062 (Line: 2)
2024/09/10 04:00:11 ToniB solved Problem0023 (Line: 6)
2024/09/10 03:48:06 ToniB solved Problem0069 (Line: 2)
2024/09/08 06:08:26 Blahaj_Enjoyer solved Problem0050 (Line: 2)
2024/09/08 06:08:06 Blahaj_Enjoyer solved Problem0050 (Line: 2)
2024/09/08 06:05:27 Blahaj_Enjoyer solved Problem0012 (Line: 11)
2024/09/08 05:59:54 Blahaj_Enjoyer solved Problem0013 (Line: 10)
2024/09/08 05:51:22 Blahaj_Enjoyer solved Problem0011 (Line: 11)
2024/09/08 05:36:52 Blahaj_Enjoyer solved Problem0010 (Line: 7)
2024/09/08 05:22:11 Blahaj_Enjoyer solved Problem0009 (Line: 4)
2024/09/08 05:15:17 Blahaj_Enjoyer solved Problem0008 (Line: 3)
2024/09/08 05:14:51 Blahaj_Enjoyer solved Problem0008 (Line: 3)
2024/09/08 05:11:26 Blahaj_Enjoyer solved Problem0007 (Line: 3)
2024/09/08 05:07:53 Blahaj_Enjoyer solved Problem0049 (Line: 1)
2024/09/08 05:06:22 Blahaj_Enjoyer solved Problem0006 (Line: 3)
2024/09/08 05:04:14 Blahaj_Enjoyer solved Problem0005 (Line: 1)
2024/09/08 05:01:30 Blahaj_Enjoyer solved Problem0004 (Line: 3)
2024/09/08 04:55:52 Blahaj_Enjoyer solved Problem0003 (Line: 1)
2024/09/08 04:54:38 Blahaj_Enjoyer solved Problem0002 (Line: 1)
2024/09/08 04:52:47 Blahaj_Enjoyer solved Problem0001 (Line: 1)
2024/09/01 14:25:16 apeiro256 solved Problem0010 (Line: 8)
2024/08/28 23:42:01 PkmnQ solved Problem0015 (Line: 17)
2024/08/26 23:36:13 apeiro256 solved Problem0013 (Line: 9)
2024/08/26 23:03:27 apeiro256 solved Problem0023 (Line: 9)
2024/08/26 22:50:58 apeiro256 solved Problem0018 (Line: 7)
2024/08/26 22:48:12 apeiro256 solved Problem0018 (Line: 7)
2024/08/26 22:41:54 apeiro256 solved Problem0032 (Line: 8)
2024/08/26 22:14:49 apeiro256 solved Problem0032 (Line: 12)
2024/08/26 21:31:24 apeiro256 solved Problem0081 (Line: 9)
2024/08/26 21:29:23 apeiro256 solved Problem0081 (Line: 7)
2024/08/26 21:21:39 apeiro256 solved Problem0081 (Line: 8)
2024/08/26 20:44:18 apeiro256 solved Problem0058 (Line: 45)
2024/08/26 20:32:01 apeiro256 solved Problem0079 (Line: 5)
2024/08/26 16:38:13 apeiro256 solved Problem0037 (Line: 8)
2024/08/26 16:15:22 apeiro256 solved Problem0020 (Line: 12)
2024/08/26 01:41:49 apeiro256 solved Problem0065 (Line: 8)
2024/08/25 23:10:01 apeiro256 solved Problem0064 (Line: 6)
2024/08/25 22:50:24 apeiro256 solved Problem0036 (Line: 3)
2024/08/25 22:49:43 apeiro256 solved Problem0051 (Line: 3)
2024/08/25 22:48:43 apeiro256 solved Problem0052 (Line: 3)
2024/08/25 15:27:27 shiomusubi496 solved Problem0039 (Line: 6)
2024/08/25 15:20:09 shiomusubi496 solved Problem0039 (Line: 7)
2024/08/25 15:19:27 shiomusubi496 solved Problem0044 (Line: 4)
2024/08/25 15:11:27 shiomusubi496 solved Problem0042 (Line: 2)
2024/08/25 15:00:57 shiomusubi496 solved Problem0023 (Line: 5)
2024/08/25 14:52:46 shiomusubi496 solved Problem0013 (Line: 7)
2024/08/25 14:37:28 shiomusubi496 solved Problem0052 (Line: 3)
2024/08/25 14:31:38 shiomusubi496 solved Problem0023 (Line: 7)
2024/08/25 14:31:00 shiomusubi496 solved Problem0052 (Line: 4)

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.