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 21, 2021 22:37Yuriy LyfenkoYuriy LyfenkoScore: 6,332Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2021 22:375,827497,358,893168,971,200027,455,488
2Sep 21, 2021 22:375,852471,800,539169,702,377027,451,392
3Sep 21, 2021 22:375,903488,127,994171,183,092027,451,392
4Sep 21, 2021 22:376,312386,883,291154,414,00028,633,00033,947,648
5Sep 21, 2021 22:376,318395,722,206156,309,00026,914,00033,718,272
6Sep 21, 2021 22:376,324385,637,318157,340,00026,049,00033,779,712
7Sep 21, 2021 22:376,332384,842,351150,246,00033,388,00033,722,368
8Sep 21, 2021 22:376,337379,419,458156,939,00026,844,00033,746,944
9Sep 21, 2021 22:376,339398,457,557152,851,00030,969,00033,644,544
10Sep 21, 2021 22:376,341395,234,385157,907,00025,971,00034,242,560
11Sep 21, 2021 22:376,357404,673,909159,983,00024,368,00034,996,224
12Sep 21, 2021 22:376,373398,071,413157,096,00027,722,00034,013,184