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 16, 2021 14:47Ilya AniskovetsIlya AniskovetsScore: 6,369Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 14:476,160460,382,802178,645,105027,451,392
2Oct 16, 2021 14:476,229468,206,699180,644,630027,443,200
3Oct 16, 2021 14:476,249472,333,796181,218,368027,447,296
4Oct 16, 2021 14:476,346371,444,139156,725,00027,300,00033,562,624
5Oct 16, 2021 14:476,360381,898,218157,791,00026,640,00033,517,568
6Oct 16, 2021 14:476,367377,581,918158,719,00025,934,00033,382,400
7Oct 16, 2021 14:476,369401,687,521151,300,00033,404,00034,091,008
8Oct 16, 2021 14:476,373385,890,801155,529,00029,287,00034,058,240
9Oct 16, 2021 14:476,374393,569,437160,965,00023,885,00034,091,008
10Oct 16, 2021 14:476,375392,143,415153,734,00031,148,00034,103,296
11Oct 16, 2021 14:476,397367,565,572154,427,00031,086,00033,751,040
12Oct 16, 2021 14:476,416399,508,624160,068,00025,985,00034,816,000