Recent Submissions

2021/03/03 20:33:21 jeeema solved Problem0010 (Line: 7)
2021/03/03 20:24:51 jeeema solved Problem0010 (Line: 7)
2021/03/03 20:19:48 jeeema solved Problem0009 (Line: 4)
2021/03/03 20:17:15 jeeema solved Problem0008 (Line: 3)
2021/03/03 20:14:13 jeeema solved Problem0006 (Line: 3)
2021/03/03 20:10:37 jeeema solved Problem0005 (Line: 1)
2021/03/03 20:10:02 jeeema solved Problem0004 (Line: 3)
2021/03/03 20:07:54 jeeema solved Problem0003 (Line: 1)
2021/03/03 20:06:39 jeeema solved Problem0002 (Line: 1)
2021/03/03 20:06:07 jeeema solved Problem0007 (Line: 3)
2021/03/03 20:03:49 jeeema solved Problem0001 (Line: 1)
2021/03/03 03:14:38 yambi solved Problem0069 (Line: 2)
2021/03/03 03:03:49 yambi solved Problem0062 (Line: 2)
2021/03/03 03:03:12 yambi solved Problem0061 (Line: 2)
2021/03/03 03:01:37 yambi solved Problem0053 (Line: 3)
2021/03/03 03:00:31 yambi solved Problem0049 (Line: 1)
2021/03/03 03:00:10 yambi solved Problem0045 (Line: 1)
2021/03/03 02:59:46 yambi solved Problem0036 (Line: 3)
2021/03/03 02:57:58 yambi solved Problem0035 (Line: 1)
2021/03/03 02:57:42 yambi solved Problem0017 (Line: 2)
2021/03/03 02:57:21 yambi solved Problem0016 (Line: 1)
2021/03/03 02:48:04 yambi solved Problem0010 (Line: 6)
2021/03/03 02:24:28 yambi solved Problem0010 (Line: 7)
2021/03/03 02:20:23 yambi solved Problem0009 (Line: 4)
2021/03/03 02:18:51 yambi solved Problem0008 (Line: 3)
2021/03/03 02:17:08 yambi solved Problem0007 (Line: 3)
2021/03/03 02:16:40 yambi solved Problem0006 (Line: 3)
2021/03/03 02:16:04 yambi solved Problem0005 (Line: 1)
2021/03/03 02:15:40 yambi solved Problem0004 (Line: 3)
2021/03/03 02:15:05 yambi solved Problem0003 (Line: 1)
2021/03/03 02:14:18 yambi solved Problem0002 (Line: 1)
2021/03/03 02:14:03 yambi solved Problem0001 (Line: 1)
2021/03/02 20:55:46 luckYrat solved Problem0062 (Line: 2)
2021/03/02 20:55:05 luckYrat solved Problem0061 (Line: 2)
2021/03/02 20:50:43 luckYrat solved Problem0049 (Line: 1)
2021/03/02 20:49:56 luckYrat solved Problem0045 (Line: 1)
2021/03/02 20:46:49 luckYrat solved Problem0035 (Line: 1)
2021/03/02 20:42:44 luckYrat solved Problem0008 (Line: 3)
2021/03/02 20:40:38 luckYrat solved Problem0007 (Line: 3)
2021/02/22 05:58:01 moinsundemi solved Problem0037 (Line: 6)
2021/02/22 05:43:32 moinsundemi solved Problem0036 (Line: 3)
2021/02/22 05:33:25 moinsundemi solved Problem0035 (Line: 1)
2021/02/22 04:57:35 moinsundemi solved Problem0023 (Line: 5)
2021/02/22 04:12:22 moinsundemi solved Problem0020 (Line: 12)
2021/02/22 04:08:48 moinsundemi solved Problem0019 (Line: 5)
2021/02/22 04:05:29 moinsundemi solved Problem0018 (Line: 7)
2021/02/22 03:56:56 moinsundemi solved Problem0017 (Line: 2)
2021/02/22 03:55:49 moinsundemi solved Problem0016 (Line: 1)
2021/02/22 02:04:20 moinsundemi solved Problem0014 (Line: 8)
2021/02/21 05:39:50 moinsundemi solved Problem0013 (Line: 7)

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.