2023-09-20 13:34:50 +08:00
|
|
|
@extern
|
|
|
|
def output_int32(x: int32):
|
2023-10-30 17:19:18 +08:00
|
|
|
...
|
2023-09-20 13:34:50 +08:00
|
|
|
|
|
|
|
@extern
|
|
|
|
def output_int32_list(x: list[int32]):
|
2023-10-30 17:19:18 +08:00
|
|
|
...
|
2023-09-20 13:34:50 +08:00
|
|
|
|
|
|
|
def run() -> int32:
|
2023-10-30 17:19:18 +08:00
|
|
|
bl = [True, False]
|
2023-09-20 13:34:50 +08:00
|
|
|
|
2023-10-30 17:19:18 +08:00
|
|
|
bl1 = bl[:]
|
|
|
|
bl1[1:] = [True]
|
|
|
|
output_int32_list([int32(b) for b in bl1])
|
|
|
|
output_int32_list([int32(b) for b in bl1])
|
2023-09-20 13:34:50 +08:00
|
|
|
|
2023-10-30 17:19:18 +08:00
|
|
|
return 0
|