CCC '25 - Donut Shop
← Back to Forum

CCC '25 - Donut Shop

D=int(input())
E=int(input())


for _ in range(E):
    e=input()
    Q=int(input())


    if e=="+":
        D+=Q
    elif e=='-':
        D-=Q


print(D)
By WATER on 3/2/2025
0

Comments

Before we do, could we please get your name and school please? Thanks.

By tankman613 on 3/6/2025

Thank you, we will add this solution shortly

By tankman613 on 3/5/2025