[Codeforces] H. Stack

H. Stack

  • Time :
  • Space :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
set [0] 10
co x {
cin [1]
eq [3] [1] 10
if [3] ac
eq [3] [1] 42
if [3] sub [2] [0] 1
if [3] mul [[2]] [[2]] [[0]]
if [3] dec [0]
eq [4] [1] 43
if [4] sub [2] [0] 1
if [4] add [[2]] [[2]] [[0]]
if [4] dec [0]
add [4] [4] [3]
sub [4] 1 [4]
if [4] inc [0]
if [4] sub [[0]] [1] 48
}
ca x
iout [[0]]
ac
Author: Song Hayoung
Link: https://songhayoung.github.io/2023/06/14/PS/Codeforces/surprise-language-round-6-h/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.