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 03:35Yuriy LyfenkoYuriy LyfenkoScore: 6,303Success
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 03:355,764445,642,075167,155,209027,451,392
2Sep 22, 2021 03:355,802438,838,437168,267,798027,455,488
3Sep 22, 2021 03:355,812459,269,721168,535,422027,451,392
4Sep 22, 2021 03:356,288386,218,348153,830,00028,524,00033,722,368
5Sep 22, 2021 03:356,302379,321,604152,630,00030,124,00033,718,272
6Sep 22, 2021 03:356,303374,679,367154,189,00028,591,00033,878,016
7Sep 22, 2021 03:356,303396,437,171151,649,00031,133,00034,107,392
8Sep 22, 2021 03:356,303386,637,088155,066,00027,727,00033,632,256
9Sep 22, 2021 03:356,317399,303,258158,077,00025,124,00034,242,560
10Sep 22, 2021 03:356,323374,234,324156,425,00026,934,00034,013,184
11Sep 22, 2021 03:356,328386,095,309158,479,00025,023,00034,340,864
12Sep 22, 2021 03:356,335392,152,773155,840,00027,865,00034,312,192