Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
|---|---|---|---|---|---|---|
| 72 | Unknown Language Round 2 | FINISHED | False | 10800 | 475854585 | March 20, 2011, 4:10 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 83 ) | D | Perse-script | PROGRAMMING | *special expression parsing | 2400 |
Two good friends were trying to make a new programming language called Perse-script. The most important part of this language is strings . A string in Perse-script is put between characters " So for example "Hello" is a string. But Hello is a variable name or a keyword, which are not considered in this problem. Perse-script is function-based. So there are no operators in this language. For example for summing two numbers you have to write sum(a,b) and not a+b . There are several functions for working on strings. These include: concat(x,y) is a function which gets two strings x and y and puts y at the end of x and returns the result. For example concat("Hello","World") returns "HelloWorld" . reverse(x) gets a single string x and reverses it. For example reverse("Hello") returns "olleH" . substr(x,a,b) gets a string x and two integers a and b ( 1 ≤ a ≤ b ≤ n , where n is the length of x ). And returns the substring of x between indexes a and b , inclusive. For example substr("Hello",2,4) returns "ell" . substr(x,a,b,c) is another version of substr which works just like the last one but c is the step of adding. c is positive . For example substr("HelloWorld",1,10,2) returns "Hlool" . This substr means that you put the a th character , and then every c th character until you reach b . You're going to manipulate the string part of Perse-script. Given a string expression, you should print its result. It is guaranteed that the expression contains only strings shown by characters " and the above functions. Commands in Perse-script are case-insensitive. So to call substr function you can write SUBsTr() . But you can't print as the result "hElLo" instead of printing "Hello" . See the samples for more information. A single line containing the correct expression. It is guaranteed that the total length of this expression does not exceed 10 3 and that all the integers used in it are less than or equal to 100 by absolute value. The given string is non-empty. All strings |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1125022 | ZhouYuChen | D | Jan. 29, 2012, 8:55 a.m. | OK | Io | TESTS | 25 | 170 | 4608000 | 2400 | |
| 353589 | loro | D | March 24, 2011, 5:31 p.m. | OK | Io | TESTS | 26 | 170 | 4608000 | 2400 | |
| 346681 | ashi009 | D | March 20, 2011, 8:41 p.m. | OK | Io | TESTS | 26 | 170 | 4608000 | 2400 | |
| 346360 | tomek | D | March 20, 2011, 6:49 p.m. | OK | Io | TESTS | 26 | 170 | 4608000 | 2400 | |
| 3818161 | yermak0v | D | June 3, 2013, 9:28 a.m. | OK | Io | TESTS | 25 | 171 | 0 | 2400 | |
| 3669342 | Omelianenko | D | May 4, 2013, 1:38 p.m. | OK | Io | TESTS | 25 | 171 | 307200 | 2400 | |
| 64570553 | steven1029 | D | Nov. 9, 2019, 9 a.m. | OK | Io | TESTS | 25 | 186 | 0 | 2400 | |
| 45851256 | yongwhan | D | Nov. 16, 2018, 11:38 p.m. | OK | Io | TESTS | 25 | 186 | 0 | 2400 | |
| 14028809 | Roms | D | Nov. 2, 2015, 2:35 p.m. | OK | Io | TESTS | 25 | 186 | 0 | 2400 | |
| 13830222 | 130705009 | D | Oct. 24, 2015, 7:28 p.m. | OK | Io | TESTS | 25 | 186 | 0 | 2400 |
Back to search problems