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.

Back to listSep 21, 2021 05:11Yuriy LyfenkoYuriy LyfenkoScore: 6,191Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2021 05:116,166890,150,611147,835,00030,965,00033,677,312
2Sep 21, 2021 05:116,177864,775,414147,101,00032,022,00033,898,496
3Sep 21, 2021 05:116,180878,207,204144,147,00035,062,00034,037,760
4Sep 21, 2021 05:116,181887,947,899149,039,00030,210,00033,935,360
5Sep 21, 2021 05:116,183890,141,754151,646,00027,665,00034,238,464
6Sep 21, 2021 05:116,185864,640,747149,973,00029,386,00034,242,560
7Sep 21, 2021 05:116,191882,025,980147,434,00032,094,00033,972,224
8Sep 21, 2021 05:116,192890,340,336153,461,00026,098,00033,697,792
9Sep 21, 2021 05:116,282905,147,926153,026,00029,147,00037,109,760
10Sep 21, 2021 05:116,543980,150,106189,741,507027,451,392
11Sep 21, 2021 05:116,561991,276,894190,255,852027,447,296
12Sep 21, 2021 05:116,561993,227,103190,282,896027,451,392