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:51Yuriy LyfenkoYuriy LyfenkoScore: 5,412Success
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:515,143443,626,047149,154,461027,430,912
2Oct 11, 2021 05:515,182489,971,042150,280,675027,439,104
3Oct 11, 2021 05:515,187420,531,424150,425,943027,435,008
4Oct 11, 2021 05:515,389363,394,387127,877,00028,417,00033,763,328
5Oct 11, 2021 05:515,394368,220,746136,867,00019,552,00033,792,000
6Oct 11, 2021 05:515,398340,698,583125,824,00030,712,00033,505,280
7Oct 11, 2021 05:515,412370,936,187128,413,00028,536,00033,751,040
8Oct 11, 2021 05:515,413371,348,238130,124,00026,851,00033,755,136
9Oct 11, 2021 05:515,430360,952,779132,097,00025,362,00033,628,160
10Oct 11, 2021 05:515,449352,240,058134,383,00023,651,00034,119,680
11Oct 11, 2021 05:515,450358,513,549130,833,00027,213,00033,931,264
12Oct 11, 2021 05:515,464372,827,403128,819,00029,648,00033,828,864