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 21, 2021 04:47Yuriy LyfenkoYuriy LyfenkoScore: 6,156Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2021 04:476,126861,024,337146,708,00030,938,00033,624,064
2Sep 21, 2021 04:476,133889,108,678141,903,00035,961,00033,587,200
3Sep 21, 2021 04:476,133866,440,432145,894,00031,976,00033,792,000
4Sep 21, 2021 04:476,141890,263,337146,907,00031,192,00034,164,736
5Sep 21, 2021 04:476,142883,857,592151,352,00026,769,00033,710,080
6Sep 21, 2021 04:476,149885,878,300148,777,00029,551,00034,226,176
7Sep 21, 2021 04:476,156885,659,580148,100,00030,431,00033,632,256
8Sep 21, 2021 04:476,162875,156,700155,447,00023,264,00034,230,272
9Sep 21, 2021 04:476,168880,577,446150,087,00028,783,00033,898,496
10Sep 21, 2021 04:476,4891,016,200,229188,175,551027,459,584
11Sep 21, 2021 04:476,526969,179,545189,262,651027,451,392
12Sep 21, 2021 04:476,5581,034,823,563190,196,084027,455,488