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:59Kenneth MaplesKenneth MaplesScore: 5,745Success
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:595,266408,764,393152,721,196027,459,584
2Oct 11, 2022 00:595,292436,855,154153,474,530027,463,680
3Oct 11, 2022 00:595,296423,915,634153,594,005027,459,584
4Oct 11, 2022 00:595,709388,938,895128,427,00037,148,00034,017,280
5Oct 11, 2022 00:595,725379,704,761127,342,00038,674,00033,624,064
6Oct 11, 2022 00:595,732366,627,789132,356,00033,858,00034,168,832
7Oct 11, 2022 00:595,745362,232,983133,889,00032,728,00033,726,464
8Oct 11, 2022 00:595,757391,275,714131,027,00035,926,00033,980,416
9Oct 11, 2022 00:595,761381,528,878130,216,00036,853,00033,808,384
10Oct 11, 2022 00:595,765391,897,052127,548,00039,626,00034,246,656
11Oct 11, 2022 00:595,770395,948,599129,511,00037,813,00033,902,592
12Oct 11, 2022 00:595,797394,654,816133,411,00034,708,00034,836,480