Recent Submissions

2026/11/29 07:53:21 nudelholz2412 solved Problem0085 (Line: 9)
2026/11/29 07:47:35 nudelholz2412 solved Problem0069 (Line: 5)
2026/11/29 07:41:37 nudelholz2412 solved Problem0053 (Line: 5)
2026/11/29 07:38:17 nudelholz2412 solved Problem0038 (Line: 7)
2026/11/29 07:32:19 nudelholz2412 solved Problem0037 (Line: 6)
2026/11/29 07:30:17 nudelholz2412 solved Problem0036 (Line: 3)
2026/11/29 07:29:11 nudelholz2412 solved Problem0035 (Line: 1)
2026/11/29 06:57:15 nudelholz2412 solved Problem0061 (Line: 2)
2026/11/29 06:56:09 nudelholz2412 solved Problem0062 (Line: 2)
2026/11/29 06:52:03 nudelholz2412 solved Problem0010 (Line: 6)
2026/11/29 06:47:26 nudelholz2412 solved Problem0010 (Line: 7)
2026/11/29 06:43:33 nudelholz2412 solved Problem0010 (Line: 7)
2026/11/29 06:33:49 nudelholz2412 solved Problem0009 (Line: 4)
2026/11/29 06:26:31 nudelholz2412 solved Problem0008 (Line: 3)
2026/11/29 06:23:17 nudelholz2412 solved Problem0007 (Line: 3)
2026/11/29 06:22:22 nudelholz2412 solved Problem0006 (Line: 3)
2026/11/29 06:21:06 nudelholz2412 solved Problem0004 (Line: 3)
2026/11/29 06:20:28 nudelholz2412 solved Problem0003 (Line: 1)
2026/11/29 06:20:09 nudelholz2412 solved Problem0005 (Line: 1)
2026/11/29 06:19:55 nudelholz2412 solved Problem0002 (Line: 1)
2026/11/29 06:19:35 nudelholz2412 solved Problem0001 (Line: 1)
2026/11/29 06:18:29 nudelholz2412 solved Problem0063 (Line: 3)
2026/11/28 13:43:25 yao99 solved Problem0071 (Line: 7)
2026/11/28 11:19:31 yao99 solved Problem0084 (Line: 7)
2026/11/28 06:23:03 Viewing3193 solved Problem0013 (Line: 8)
2026/11/28 06:07:04 Viewing3193 solved Problem0013 (Line: 10)
2026/11/28 02:36:50 Lhane solved Problem0002 (Line: 1)
2026/11/28 02:30:37 Lhane solved Problem0001 (Line: 1)
2026/11/27 22:17:05 apeiro256 solved Problem0039 (Line: 12)
2026/11/27 17:17:22 bry solved Problem0061 (Line: 2)
2026/11/27 17:14:18 bry solved Problem0080 (Line: 2)
2026/11/27 17:07:32 bry solved Problem0019 (Line: 6)
2026/11/27 16:56:39 bry solved Problem0019 (Line: 10)
2026/11/27 03:09:58 Stella solved Problem0002 (Line: 1)
2026/11/27 02:58:12 Stella solved Problem0001 (Line: 1)
2026/11/27 02:52:28 YufangProbably solved Problem0010 (Line: 7)
2026/11/27 02:17:14 Viewing3193 solved Problem0013 (Line: 9)
2026/11/27 02:11:18 Viewing3193 solved Problem0012 (Line: 11)
2026/11/27 02:10:59 Viewing3193 solved Problem0012 (Line: 12)
2026/11/27 02:07:27 Viewing3193 solved Problem0011 (Line: 11)
2026/11/27 02:01:34 Viewing3193 solved Problem0010 (Line: 6)
2026/11/26 15:24:47 bry solved Problem0023 (Line: 7)
2026/11/26 15:19:51 bry solved Problem0023 (Line: 11)
2026/11/26 14:57:40 bry solved Problem0014 (Line: 11)
2026/11/26 14:54:24 bry solved Problem0014 (Line: 12)
2026/11/26 01:33:44 bry solved Problem0078 (Line: 1)
2026/11/26 01:21:12 bry solved Problem0013 (Line: 10)
2026/11/25 23:32:58 bry solved Problem0052 (Line: 3)
2026/11/25 23:31:05 bry solved Problem0051 (Line: 3)
2026/11/25 23:30:05 bry solved Problem0050 (Line: 2)

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.