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 listOct 11, 2022 00:41Kenneth MaplesKenneth MaplesScore: 5,913Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2022 00:415,566461,661,730161,426,869027,463,680
2Oct 11, 2022 00:415,582413,437,988161,871,209027,463,680
3Oct 11, 2022 00:415,590434,969,624162,097,943027,463,680
4Oct 11, 2022 00:415,889388,745,275139,921,00030,864,00033,374,208
5Oct 11, 2022 00:415,901360,709,819141,236,00029,896,00034,025,472
6Oct 11, 2022 00:415,913396,529,499139,610,00031,857,00033,615,872
7Oct 11, 2022 00:415,913389,287,628128,331,00043,145,00034,074,624
8Oct 11, 2022 00:415,917390,797,747141,478,00030,121,00033,906,688
9Oct 11, 2022 00:415,922372,603,044127,840,00043,885,00033,882,112
10Oct 11, 2022 00:415,926377,848,236140,164,00031,689,00034,390,016
11Oct 11, 2022 00:415,937395,673,046139,383,00032,796,00034,152,448
12Oct 11, 2022 00:415,980400,885,764131,881,00041,537,00034,144,256