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 20, 2021 18:57Ilya AniskovetsIlya AniskovetsScore: 6,338Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 20, 2021 18:576,240514,946,243180,958,664027,463,680
2Sep 20, 2021 18:576,283468,028,588182,198,282027,455,488
3Sep 20, 2021 18:576,313526,571,613183,078,990027,451,392
4Sep 20, 2021 18:576,317392,673,275147,915,00035,264,00033,980,416
5Sep 20, 2021 18:576,320388,616,793154,619,00028,671,00033,730,560
6Sep 20, 2021 18:576,321371,689,682153,933,00029,368,00033,783,808
7Sep 20, 2021 18:576,338389,658,568149,400,00034,401,00033,898,496
8Sep 20, 2021 18:576,346373,667,618157,310,00026,732,00033,849,344
9Sep 20, 2021 18:576,353392,347,456161,867,00022,363,00034,164,736
10Sep 20, 2021 18:576,356385,659,790153,947,00030,384,00034,426,880
11Sep 20, 2021 18:576,366398,461,314155,035,00029,579,00034,009,088
12Sep 20, 2021 18:576,463420,182,394155,860,00031,579,00037,421,056