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:27Yuriy LyfenkoYuriy LyfenkoScore: 6,276Success
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:275,815972,675,732168,646,060027,340,800
2Sep 22, 2021 03:275,829964,676,028169,042,842027,455,488
3Sep 22, 2021 03:275,8481,014,526,820169,588,331027,455,488
4Sep 22, 2021 03:276,259870,695,540153,831,00027,689,00033,673,216
5Sep 22, 2021 03:276,274888,095,486150,777,00031,160,00033,996,800
6Sep 22, 2021 03:276,275870,243,935154,218,00027,759,00033,914,880
7Sep 22, 2021 03:276,276876,739,574148,996,00032,999,00033,689,600
8Sep 22, 2021 03:276,281889,098,312157,165,00024,979,00034,013,184
9Sep 22, 2021 03:276,284891,158,483145,406,00036,836,00033,959,936
10Sep 22, 2021 03:276,307880,738,854155,873,00027,018,00035,110,912
11Sep 22, 2021 03:276,323907,165,839156,439,00026,936,00034,152,448
12Sep 22, 2021 03:276,328890,320,482157,442,00026,066,00033,792,000