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 06:14Yuriy LyfenkoYuriy LyfenkoScore: 5,347Success
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 06:145,081430,792,611147,360,485027,439,104
2Oct 11, 2021 06:145,115492,004,015148,348,731027,435,008
3Oct 11, 2021 06:145,121447,432,463148,502,074027,439,104
4Oct 11, 2021 06:145,344360,807,005130,719,00024,246,00033,755,136
5Oct 11, 2021 06:145,345356,126,706128,135,00026,867,00033,796,096
6Oct 11, 2021 06:145,346367,279,499126,480,00028,560,00034,021,376
7Oct 11, 2021 06:145,347364,965,164125,868,00029,201,00033,755,136
8Oct 11, 2021 06:145,350365,877,382123,535,00031,624,00034,054,144
9Oct 11, 2021 06:145,359364,501,622126,788,00028,629,00034,058,240
10Oct 11, 2021 06:145,362348,307,724126,853,00028,644,00033,845,248
11Oct 11, 2021 06:145,366363,689,286120,064,00035,539,00033,796,096
12Oct 11, 2021 06:145,409372,030,402132,480,00024,376,00034,287,616