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:36Yuriy LyfenkoYuriy LyfenkoScore: 5,659Success
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:365,400433,782,476156,586,820027,447,296
2Sep 22, 2021 16:365,450501,783,875158,061,767027,455,488
3Sep 22, 2021 16:365,465471,452,801158,480,354027,447,296
4Sep 22, 2021 16:365,626342,889,525133,956,00029,208,00033,857,536
5Sep 22, 2021 16:365,636358,614,341133,543,00029,897,00034,246,656
6Sep 22, 2021 16:365,641354,787,625130,295,00033,308,00033,513,472
7Sep 22, 2021 16:365,659376,024,592133,269,00030,830,00034,320,384
8Sep 22, 2021 16:365,659362,212,818137,277,00026,836,00034,304,000
9Sep 22, 2021 16:365,677378,235,098131,122,00033,519,00034,041,856
10Sep 22, 2021 16:365,679388,322,389135,021,00029,663,00035,110,912
11Sep 22, 2021 16:365,679372,938,422136,235,00028,467,00033,501,184
12Sep 22, 2021 16:365,717379,536,288135,101,00030,704,00034,000,896