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:07Yuriy LyfenkoYuriy LyfenkoScore: 5,423Success
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:075,095391,354,215147,753,853027,435,008
2Oct 11, 2021 06:075,106447,667,770148,084,416027,435,008
3Oct 11, 2021 06:075,165446,611,922149,776,983027,439,104
4Oct 11, 2021 06:075,390368,005,659130,425,00025,877,00033,628,160
5Oct 11, 2021 06:075,409360,941,775130,710,00026,142,00033,533,952
6Oct 11, 2021 06:075,421365,746,765127,613,00029,606,00033,894,400
7Oct 11, 2021 06:075,423366,178,064131,228,00026,037,00033,775,616
8Oct 11, 2021 06:075,426366,487,364124,899,00032,454,00034,017,280
9Oct 11, 2021 06:075,431363,518,797126,204,00031,298,00034,320,384
10Oct 11, 2021 06:075,436369,696,680124,145,00033,499,00034,279,424
11Oct 11, 2021 06:075,440368,219,774130,607,00027,166,00033,583,104
12Oct 11, 2021 06:075,456367,405,998134,546,00023,680,00033,796,096