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:22Yuriy LyfenkoYuriy LyfenkoScore: 5,633Success
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:225,406486,753,771156,775,085027,443,200
2Oct 11, 2021 04:225,458444,038,685158,281,476027,439,104
3Oct 11, 2021 04:225,491465,287,194159,226,601027,439,104
4Oct 11, 2021 04:225,616360,270,597136,237,00026,632,00033,779,712
5Oct 11, 2021 04:225,621366,906,563132,203,00030,814,00033,869,824
6Oct 11, 2021 04:225,622363,584,490129,647,00033,393,00033,894,400
7Oct 11, 2021 04:225,633373,749,141135,801,00027,568,00033,779,712
8Oct 11, 2021 04:225,636372,978,618130,958,00032,493,00034,058,240
9Oct 11, 2021 04:225,655352,772,491140,579,00023,429,00034,414,592
10Oct 11, 2021 04:225,662366,744,929138,054,00026,146,00034,017,280
11Oct 11, 2021 04:225,667375,623,632140,275,00024,077,00033,267,712
12Oct 11, 2021 04:225,682368,472,320134,264,00030,514,00034,316,288