codeforces-scrape

Codeforces scraped problems and editorials
git clone git://git.laack.co/codeforces-scrape.git
Log | Files | Refs | README

64B.md (553B)


      1 Source: https://codeforces.com/problemset/problem/64/B
      2 
      3 B. Expression
      4 
      5 time limit per test
      6 
      7 2 seconds
      8 
      9 memory limit per test
     10 
     11 64 megabytes
     12 
     13 input
     14 
     15 stdin
     16 
     17 output
     18 
     19 stdout
     20 
     21 You are given a line «n#m», where «n» and «m» are digits, and «#» is a sign «+» or «-». Print the value of the given expression.
     22 
     23 Input
     24 
     25 The only given line has a string in form «n#m», where «n» and «m» are digits (from 0 to 9), and «#» is a sign «+» or «-».
     26 
     27 Output
     28 
     29 Print the value of the given expression.
     30 
     31 Examples
     32 
     33 Input
     34 
     35 ```
     36 1-5
     37 ```
     38 
     39 Output
     40 
     41 ```
     42 -4
     43 ```