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, 2021 06:10Yuriy LyfenkoYuriy LyfenkoScore: 5,360Success
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, 2021 06:105,079495,069,395147,304,874027,439,104
2Oct 11, 2021 06:105,091471,420,681147,643,418027,430,912
3Oct 11, 2021 06:105,133480,186,432148,859,323027,443,200
4Oct 11, 2021 06:105,342366,710,337132,482,00022,436,00034,004,992
5Oct 11, 2021 06:105,346350,681,739125,035,00030,008,00033,894,400
6Oct 11, 2021 06:105,356367,173,964129,273,00026,063,00034,062,336
7Oct 11, 2021 06:105,360359,107,224126,988,00028,445,00033,705,984
8Oct 11, 2021 06:105,364349,946,940127,086,00028,467,00034,283,520
9Oct 11, 2021 06:105,369372,529,038129,577,00026,124,00034,058,240
10Oct 11, 2021 06:105,371363,883,313124,804,00030,951,00033,484,800
11Oct 11, 2021 06:105,387368,744,703129,153,00027,080,00034,009,088
12Oct 11, 2021 06:105,399360,921,178130,470,00026,094,00033,832,960