Arithmetic expressions Sergey Svistunov

Evaluate 100 arithmetic expressions as fast as possible.

Input

One expression per line on STDIN. Each expression contains 50,000 int16 numbers with operators +, -, *, / (integer division) and parentheses (, ).

-19550 - ((-14208 / (13583 + -19215)) + (-16832 / 797 + (9060 / -23627)) + ((-6060) + 24953))
30835 - 3703 - (-20089 * -6261 + ((-28985 - 29627) + (-17828 - (22773 / -4014) * 1630)))

Output

Print the int64 result of each expression, one per line, to STDOUT.

Date AuthorLanguageStatus Score
Aug 23, 2021 10:33Sergey StreminSergey StreminRUSTrust-1.54.0Error
Aug 23, 2021 09:24Sergey StreminSergey StreminRUSTrust-1.54.0Error
Aug 23, 2021 09:22Sergey StreminSergey StreminRUSTrust-1.54.0Error
Aug 23, 2021 09:21Sergey StreminSergey StreminRUSTrust-1.55.0Error
Aug 23, 2021 02:42Yuriy LyfenkoYuriy LyfenkoGOgo1.16.7Success720,574+0.05 RP
Aug 23, 2021 02:21Yuriy LyfenkoYuriy LyfenkoGOgo1.16.7Success725,114
Aug 23, 2021 01:52Yuriy LyfenkoYuriy LyfenkoGOgo1.16.7Success723,160+13.83 RP
Aug 22, 2021 19:30Andrey TsvetkovAndrey TsvetkovGOgo1.17Success678,921+14.73 RP