Problem list
Log in
#r00050 · 주몽이(original)

계산 하는 문제 1

Bronze IV 1.0 s 256 MB

길이 $n$의 문자열이 주어진다. 이 문자열의 계산 결과를 예제와 같이 출력한다.

Input

길이 100 이하의 문자열이 주어진다. 이 문자열은 한자리 정수, +, - 만으로 이루어진다.

Output

이 문자열의 계산 결과를 출력한다.

Constraints

$-10000 ≤$ 결과 $≤ 10000$

Example 1

Input
1+5-6-7
Output
-7
Source
주몽이(original) by joomongogo
Appears in
Not part of a ladder, contest or set yet.
Accepted 5 Submissions 11 Acceptance 100% Solvers 5

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code