結果

問題 No.2595 Parsing Challenge
ユーザー ShirotsumeShirotsume
提出日時 2023-12-23 00:13:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 441 bytes
コンパイル時間 451 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 490,632 KB
最終ジャッジ日時 2023-12-23 00:13:52
合計ジャッジ時間 12,038 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
56,140 KB
testcase_01 AC 41 ms
56,140 KB
testcase_02 AC 41 ms
56,140 KB
testcase_03 AC 42 ms
56,140 KB
testcase_04 AC 42 ms
56,140 KB
testcase_05 AC 43 ms
56,140 KB
testcase_06 AC 42 ms
56,140 KB
testcase_07 AC 42 ms
56,140 KB
testcase_08 WA -
testcase_09 AC 42 ms
56,140 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 43 ms
56,140 KB
testcase_13 WA -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 WA -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
testcase_35 TLE -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
testcase_50 -- -
testcase_51 -- -
testcase_52 -- -
testcase_53 -- -
testcase_54 -- -
testcase_55 -- -
testcase_56 -- -
testcase_57 -- -
testcase_58 -- -
testcase_59 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, time, random
from collections import deque, Counter, defaultdict
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 63 - 1
mod = 998244353
sys.setrecursionlimit(10 ** 6 + 5)

n = ii()
s = input()

t = []

for v in s:
    if t and t[-1] =='-' and v == '-':
        t.pop()
        continue
    t.append(v)
t = ''.join(t)
print(eval(t))
0