Recent Submissions

2024/04/23 01:44:55 Fuyuru solved Problem0001 (Line: 1)
2024/04/20 21:25:34 berylliumcopper solved Problem0010 (Line: 7)
2024/04/20 21:20:48 berylliumcopper solved Problem0009 (Line: 4)
2024/04/20 21:18:59 berylliumcopper solved Problem0008 (Line: 3)
2024/04/20 21:14:48 berylliumcopper solved Problem0007 (Line: 3)
2024/04/20 21:14:15 berylliumcopper solved Problem0007 (Line: 5)
2024/04/20 21:12:33 berylliumcopper solved Problem0006 (Line: 3)
2024/04/20 21:11:54 berylliumcopper solved Problem0005 (Line: 1)
2024/04/20 21:11:19 berylliumcopper solved Problem0004 (Line: 3)
2024/04/20 21:10:47 berylliumcopper solved Problem0003 (Line: 1)
2024/04/20 21:09:02 berylliumcopper solved Problem0002 (Line: 1)
2024/04/20 21:08:27 berylliumcopper solved Problem0001 (Line: 1)
2024/04/15 18:40:53 MasuP solved Problem0041 (Line: 13)
2024/04/15 18:37:00 MasuP solved Problem0040 (Line: 18)
2024/04/15 18:33:05 MasuP solved Problem0039 (Line: 18)
2024/04/15 01:00:17 MasuP solved Problem0038 (Line: 8)
2024/04/15 00:48:56 MasuP solved Problem0037 (Line: 6)
2024/04/15 00:45:43 MasuP solved Problem0036 (Line: 3)
2024/04/15 00:43:39 MasuP solved Problem0035 (Line: 1)
2024/04/15 00:40:34 MasuP solved Problem0034 (Line: 9)
2024/04/14 23:59:02 MasuP solved Problem0033 (Line: 19)
2024/04/14 23:28:59 MasuP solved Problem0032 (Line: 12)
2024/04/14 23:23:13 MasuP solved Problem0031 (Line: 22)
2024/04/14 21:54:49 MasuP solved Problem0030 (Line: 20)
2024/04/14 21:52:31 BadilDayo solved Problem0009 (Line: 4)
2024/04/14 21:50:22 MasuP solved Problem0029 (Line: 17)
2024/04/14 21:43:47 YUTORI solved Problem0007 (Line: 3)
2024/04/14 21:36:05 BadilDayo solved Problem0008 (Line: 3)
2024/04/14 21:22:22 BadilDayo solved Problem0007 (Line: 3)
2024/04/14 21:17:19 BadilDayo solved Problem0006 (Line: 3)
2024/04/14 21:16:35 BadilDayo solved Problem0005 (Line: 1)
2024/04/14 21:16:24 YUTORI solved Problem0006 (Line: 3)
2024/04/14 21:15:43 BadilDayo solved Problem0004 (Line: 3)
2024/04/14 21:15:23 YUTORI solved Problem0005 (Line: 1)
2024/04/14 21:11:42 BadilDayo solved Problem0003 (Line: 1)
2024/04/14 21:10:52 BadilDayo solved Problem0002 (Line: 1)
2024/04/14 21:10:20 BadilDayo solved Problem0001 (Line: 1)
2024/04/14 21:02:09 YUTORI solved Problem0004 (Line: 3)
2024/04/14 21:00:00 YUTORI solved Problem0003 (Line: 1)
2024/04/14 20:58:48 YUTORI solved Problem0002 (Line: 1)
2024/04/14 20:58:03 YUTORI solved Problem0001 (Line: 1)
2024/04/14 20:52:00 MasuP solved Problem0028 (Line: 19)
2024/04/14 20:35:37 MasuP solved Problem0027 (Line: 11)
2024/04/14 20:27:24 MasuP solved Problem0027 (Line: 17)
2024/04/14 18:38:58 MasuP solved Problem0026 (Line: 22)
2024/04/14 17:49:12 MasuP solved Problem0025 (Line: 7)
2024/04/14 17:41:37 MasuP solved Problem0024 (Line: 17)
2024/04/14 17:30:11 MasuP solved Problem0023 (Line: 7)
2024/04/14 17:21:49 MasuP solved Problem0022 (Line: 13)
2024/04/14 16:41:35 MasuP solved Problem0020 (Line: 12)

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.