Educational Codeforces Round 90 (Rated for Div. 2)-C. Pluses and Minuses

題目連接 題意: 有一個只含±號的字符串會通過以下處理獲得一個值,請你寫出一個程序知足以下條件並輸出正確的res。ios res = 0 for init = 0 to inf cur = init ok = true for i = 1 to |s| res = res + 1 if s[i] == '+' cur
相關文章
相關標籤/搜索