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 14:10Yuriy LyfenkoYuriy LyfenkoScore: 5,885Success
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 14:105,675464,614,801164,581,559027,451,392
2Sep 22, 2021 14:105,700502,782,740165,310,961027,463,680
3Sep 22, 2021 14:105,777440,997,628167,544,336027,451,392
4Sep 22, 2021 14:105,875363,661,263140,321,00030,068,00033,701,888
5Sep 22, 2021 14:105,880381,737,191142,103,00028,420,00033,972,224
6Sep 22, 2021 14:105,880369,613,480141,934,00028,591,00033,718,272
7Sep 22, 2021 14:105,885353,583,215140,363,00030,294,00033,669,120
8Sep 22, 2021 14:105,889365,191,552135,660,00035,135,00033,902,592
9Sep 22, 2021 14:105,893384,261,002144,844,00026,051,00033,980,416
10Sep 22, 2021 14:105,904381,196,366137,369,00033,844,00033,701,888
11Sep 22, 2021 14:105,917385,198,207141,973,00029,620,00034,131,968
12Sep 22, 2021 14:105,922377,312,747137,983,00033,751,00034,013,184