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 16:20Yuriy LyfenkoYuriy LyfenkoScore: 6,259Success
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 16:206,053462,023,231175,543,310027,447,296
2Sep 22, 2021 16:206,125480,688,514177,621,807027,443,200
3Sep 22, 2021 16:206,134501,708,940177,898,146027,443,200
4Sep 22, 2021 16:206,241387,980,961155,276,00025,708,00033,705,984
5Sep 22, 2021 16:206,254383,706,518149,297,00032,063,00033,796,096
6Sep 22, 2021 16:206,256357,345,131152,039,00029,394,00033,771,520
7Sep 22, 2021 16:206,259393,303,648150,412,00031,085,00034,353,152
8Sep 22, 2021 16:206,260396,783,909144,463,00037,066,00033,796,096
9Sep 22, 2021 16:206,274378,920,512154,343,00027,597,00034,271,232
10Sep 22, 2021 16:206,274365,192,129157,898,00024,050,00034,013,184
11Sep 22, 2021 16:206,275395,176,903156,261,00025,700,00034,058,240
12Sep 22, 2021 16:206,276386,602,855153,377,00028,630,00033,746,944