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 20, 2021 18:15Ilya AniskovetsIlya AniskovetsScore: 6,310Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 20, 2021 18:156,282373,390,037146,911,00035,258,00034,013,184
2Sep 20, 2021 18:156,284400,184,940154,605,00027,644,00033,980,416
3Sep 20, 2021 18:156,293513,365,017182,495,475027,463,680
4Sep 20, 2021 18:156,301371,734,842156,616,00026,102,00033,488,896
5Sep 20, 2021 18:156,304379,717,913153,194,00029,617,00033,906,688
6Sep 20, 2021 18:156,304395,455,571160,756,00022,064,00033,640,448
7Sep 20, 2021 18:156,310395,103,566153,354,00029,648,00034,181,120
8Sep 20, 2021 18:156,321475,556,871183,297,690027,455,488
9Sep 20, 2021 18:156,321395,309,618156,381,00026,926,00034,332,672
10Sep 20, 2021 18:156,339397,194,853155,071,00028,754,00034,242,560
11Sep 20, 2021 18:156,359459,930,686184,411,290027,377,664
12Sep 20, 2021 18:156,373397,685,685164,152,00020,654,00034,160,640