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 16:47Yuriy LyfenkoYuriy LyfenkoScore: 6,637Success
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 16:476,255545,167,910181,403,653027,463,680
2Sep 21, 2021 16:476,282495,342,623182,171,951027,459,584
3Sep 21, 2021 16:476,297498,007,512182,625,604027,455,488
4Sep 21, 2021 16:476,610384,162,962168,518,00023,171,00033,935,360
5Sep 21, 2021 16:476,620408,675,978162,520,00029,456,00033,980,416
6Sep 21, 2021 16:476,634399,193,220168,215,00024,180,00033,644,544
7Sep 21, 2021 16:476,637401,482,081162,095,00030,392,00034,021,376
8Sep 21, 2021 16:476,646377,358,014160,607,00032,121,00034,156,544
9Sep 21, 2021 16:476,652386,666,142165,063,00027,854,00034,160,640
10Sep 21, 2021 16:476,653384,285,710164,353,00028,583,00033,959,936
11Sep 21, 2021 16:476,660407,055,936162,650,00030,497,00034,549,760
12Sep 21, 2021 16:476,733423,873,228159,388,00035,862,00035,319,808