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 listSep 22, 2021 16:05Yuriy LyfenkoYuriy LyfenkoScore: 5,713Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 22, 2021 16:055,530483,379,990160,369,948027,455,488
2Sep 22, 2021 16:055,582487,405,517161,863,636027,455,488
3Sep 22, 2021 16:055,623533,203,004163,076,091027,451,392
4Sep 22, 2021 16:055,660360,784,934130,722,00033,417,00033,587,200
5Sep 22, 2021 16:055,677350,418,047133,888,00030,744,00033,460,224
6Sep 22, 2021 16:055,710361,866,690138,512,00027,077,00033,882,112
7Sep 22, 2021 16:055,713381,223,272143,378,00022,303,00034,390,016
8Sep 22, 2021 16:055,716378,150,111126,694,00039,056,00034,172,928
9Sep 22, 2021 16:055,716374,837,100131,647,00034,130,00034,471,936
10Sep 22, 2021 16:055,717370,305,010142,271,00023,533,00034,361,344
11Sep 22, 2021 16:055,727381,789,223133,464,00032,624,00034,119,680
12Sep 22, 2021 16:055,729376,484,524133,119,00033,029,00034,140,160