html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<pre>
[CHALLENGE] Tricky symbol
It is a hard challenge for me😊
But I hope you can do it.
rules:
1.The program accepts a string;
2.The program checks the string for the symbol '#';
3.If there is such a symbol, all the symbols after it will be reversed (The program will preserve the register
of the string);
4.If there are two such symbols, all the symbols after them will be reversed and the register of letters will
become the opposite of that which was before;
5.If there are 3 or more such symbols, nothing will happen;
example:
Input: "133#1454"
Output: "133#4541"
Input: "dgH2##aJdcS"
Output: "dgH2##sCDjA"
Input: "##hhhNNN#HhN":
Output: "##nnnHHH#NhH"
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run