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 04:42Yuriy LyfenkoYuriy LyfenkoScore: 5,635Success
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 04:425,341466,449,490154,902,586027,447,296
2Oct 11, 2021 04:425,371429,936,009155,747,551027,435,008
3Oct 11, 2021 04:425,384416,091,200156,131,471027,480,064
4Oct 11, 2021 04:425,613370,901,082134,470,00028,309,00033,509,376
5Oct 11, 2021 04:425,619370,220,824127,052,00035,885,00034,017,280
6Oct 11, 2021 04:425,623354,385,146135,548,00027,517,00033,533,952
7Oct 11, 2021 04:425,635359,946,671140,216,00023,193,00034,385,920
8Oct 11, 2021 04:425,635372,780,860136,697,00026,722,00034,369,536
9Oct 11, 2021 04:425,636372,799,393136,726,00026,728,00033,755,136
10Oct 11, 2021 04:425,638375,504,236134,881,00028,611,00033,878,016
11Oct 11, 2021 04:425,639368,639,596135,102,00028,442,00034,058,240
12Oct 11, 2021 04:425,653355,713,706136,271,00027,664,00034,058,240