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:18Yuriy LyfenkoYuriy LyfenkoScore: 5,338Success
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:185,146464,450,182149,228,138027,435,008
2Oct 11, 2021 06:185,182610,157,608150,276,384027,439,104
3Oct 11, 2021 06:185,202478,775,163150,858,575027,435,008
4Oct 11, 2021 06:185,322340,688,213126,738,00027,596,00033,402,880
5Oct 11, 2021 06:185,330363,927,908128,637,00025,935,00033,746,944
6Oct 11, 2021 06:185,333366,390,528127,190,00027,473,00033,501,184
7Oct 11, 2021 06:185,338342,424,230123,842,00030,960,00033,828,864
8Oct 11, 2021 06:185,353364,141,972125,812,00029,423,00034,009,088
9Oct 11, 2021 06:185,374347,384,318125,075,00030,772,00034,017,280
10Oct 11, 2021 06:185,378370,831,694127,237,00028,730,00033,894,400
11Oct 11, 2021 06:185,389370,501,268131,838,00024,453,00034,119,680
12Oct 11, 2021 06:185,407372,573,698122,708,00034,085,00033,746,944