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:11Ilya AniskovetsIlya AniskovetsScore: 6,755Success
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:116,499496,458,234188,477,505027,447,296
2Sep 20, 2021 18:116,506527,884,923188,687,687027,459,584
3Sep 20, 2021 18:116,551550,523,719189,987,960027,459,584
4Sep 20, 2021 18:116,712400,361,556165,246,00029,399,00033,329,152
5Sep 20, 2021 18:116,740413,739,386164,392,00031,074,00033,718,272
6Sep 20, 2021 18:116,752400,883,899160,554,00035,243,00033,947,648
7Sep 20, 2021 18:116,755399,062,435160,630,00035,260,00033,488,896
8Sep 20, 2021 18:116,766403,157,648161,081,00035,145,00034,164,736
9Sep 20, 2021 18:116,767400,734,434166,611,00029,642,00033,718,272
10Sep 20, 2021 18:116,770399,306,906177,902,00018,441,00033,554,432
11Sep 20, 2021 18:116,778415,833,912162,805,00033,752,00033,902,592
12Sep 20, 2021 18:116,781406,316,671171,684,00024,972,00033,751,040