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 listMay 30, 2023 22:12Martin StensgårdMartin StensgårdScore: 6,890Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 30, 2023 22:126,620471,875,929191,967,080027,455,488
2May 30, 2023 22:126,636513,877,565192,442,874027,463,680
3May 30, 2023 22:126,639481,682,888192,542,842027,459,584
4May 30, 2023 22:126,852400,464,379169,601,00029,103,00033,644,544
5May 30, 2023 22:126,881413,834,184171,926,00027,631,00033,492,992
6May 30, 2023 22:126,887388,725,680171,194,00028,532,00034,168,832
7May 30, 2023 22:126,890406,475,609167,174,00032,643,00033,832,960
8May 30, 2023 22:126,897396,269,232169,850,00030,151,00034,209,792
9May 30, 2023 22:126,902399,209,273170,832,00029,314,00033,382,400
10May 30, 2023 22:126,902412,161,987173,602,00026,550,00033,693,696
11May 30, 2023 22:126,913408,093,441168,708,00031,756,00033,902,592
12May 30, 2023 22:126,985407,364,346171,472,00031,085,00033,898,496