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 05:46Yuriy LyfenkoYuriy LyfenkoScore: 5,384Success
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 05:465,160457,686,663149,649,733027,439,104
2Oct 11, 2021 05:465,200422,661,214150,787,170027,435,008
3Oct 11, 2021 05:465,207445,819,280150,990,070027,455,488
4Oct 11, 2021 05:465,359338,543,085123,161,00032,256,00033,947,648
5Oct 11, 2021 05:465,382359,616,243127,506,00028,561,00033,509,376
6Oct 11, 2021 05:465,383341,712,341127,531,00028,567,00034,123,776
7Oct 11, 2021 05:465,384364,847,775122,959,00033,179,00033,755,136
8Oct 11, 2021 05:465,390366,525,831125,641,00030,668,00034,385,920
9Oct 11, 2021 05:465,391334,932,697129,425,00026,920,00034,152,448
10Oct 11, 2021 05:465,397374,941,845126,408,00030,097,00034,062,336
11Oct 11, 2021 05:465,407364,137,404127,275,00029,527,00033,869,824
12Oct 11, 2021 05:465,450382,193,055129,323,00028,738,00035,598,336