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 listOct 11, 2021 03:50Yuriy LyfenkoYuriy LyfenkoScore: 6,193Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 03:506,010490,258,329174,297,870027,447,296
2Oct 11, 2021 03:506,045461,729,371175,302,189027,447,296
3Oct 11, 2021 03:506,072466,188,350176,086,000027,447,296
4Oct 11, 2021 03:506,183371,068,616143,642,00035,669,00033,796,096
5Oct 11, 2021 03:506,187373,091,839151,029,00028,381,00034,131,968
6Oct 11, 2021 03:506,187373,956,508158,182,00021,232,00034,025,472
7Oct 11, 2021 03:506,193390,993,813146,236,00033,369,00033,722,368
8Oct 11, 2021 03:506,194378,594,031147,691,00031,933,00033,796,096
9Oct 11, 2021 03:506,209400,724,728149,725,00030,349,00034,189,312
10Oct 11, 2021 03:506,211382,345,905146,836,00033,283,00033,665,024
11Oct 11, 2021 03:506,223388,647,989150,059,00030,417,00034,320,384
12Oct 11, 2021 03:506,227397,477,756151,167,00029,421,00034,582,528