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:46Yuriy LyfenkoYuriy LyfenkoScore: 5,673Success
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:465,433451,184,921157,556,926027,447,296
2Sep 22, 2021 16:465,466479,580,982158,503,537027,443,200
3Sep 22, 2021 16:465,476498,644,347158,797,847027,447,296
4Sep 22, 2021 16:465,656350,994,269131,412,00032,606,00033,755,136
5Sep 22, 2021 16:465,656357,376,961140,904,00023,133,00033,562,624
6Sep 22, 2021 16:465,670372,131,660135,352,00029,075,00033,849,344
7Sep 22, 2021 16:465,673369,404,686141,317,00023,201,00033,595,392
8Sep 22, 2021 16:465,690373,249,960137,160,00027,844,00034,275,328
9Sep 22, 2021 16:465,695379,789,057135,769,00029,382,00033,796,096
10Sep 22, 2021 16:465,704374,706,162137,853,00027,570,00033,759,232
11Sep 22, 2021 16:465,713387,447,595137,727,00027,959,00034,004,992
12Sep 22, 2021 16:465,735364,463,871141,045,00025,261,00034,942,976