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 22, 2021 13:28Yuriy LyfenkoYuriy LyfenkoScore: 6,205Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 22, 2021 13:285,674455,529,415164,559,259027,455,488
2Sep 22, 2021 13:285,739499,054,426166,438,224027,463,680
3Sep 22, 2021 13:285,787479,300,118167,818,141027,455,488
4Sep 22, 2021 13:286,169371,247,803146,282,00032,617,00033,755,136
5Sep 22, 2021 13:286,178395,737,847148,312,00030,856,00033,738,752
6Sep 22, 2021 13:286,193391,946,580157,144,00022,449,00033,636,352
7Sep 22, 2021 13:286,205386,053,237152,188,00027,764,00033,701,888
8Sep 22, 2021 13:286,214392,984,862148,814,00031,382,00034,246,656
9Sep 22, 2021 13:286,216383,656,409146,577,00033,673,00033,882,112
10Sep 22, 2021 13:286,222395,548,374153,481,00026,963,00033,751,040
11Sep 22, 2021 13:286,222378,540,713149,195,00031,250,00033,984,512
12Sep 22, 2021 13:286,227394,830,249157,340,00023,231,00034,160,640