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 04:04Yuriy LyfenkoYuriy LyfenkoScore: 6,292Success
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 04:045,692458,154,703165,077,157027,455,488
2Sep 22, 2021 04:045,761482,580,520167,067,366027,467,776
3Sep 22, 2021 04:045,853489,241,170169,735,782027,455,488
4Sep 22, 2021 04:046,278379,391,016155,158,00026,894,00033,816,576
5Sep 22, 2021 04:046,282387,003,730149,517,00032,675,00033,718,272
6Sep 22, 2021 04:046,285393,831,176155,491,00026,773,00033,746,944
7Sep 22, 2021 04:046,292388,926,411159,407,00023,072,00033,902,592
8Sep 22, 2021 04:046,302396,630,300149,167,00033,587,00034,373,632
9Sep 22, 2021 04:046,303393,939,862156,665,00026,110,00034,004,992
10Sep 22, 2021 04:046,314379,511,700154,291,00028,801,00034,045,952
11Sep 22, 2021 04:046,342403,985,293158,553,00025,368,00034,082,816
12Sep 22, 2021 04:046,397416,047,884160,843,00024,662,00034,168,832