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 03:32Yuriy LyfenkoYuriy LyfenkoScore: 5,668Success
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 03:325,421438,969,207157,213,478027,447,296
2Oct 11, 2021 03:325,439467,814,060157,743,299027,443,200
3Oct 11, 2021 03:325,471433,980,984158,669,021027,447,296
4Oct 11, 2021 03:325,638357,633,353143,191,00020,303,00033,759,232
5Oct 11, 2021 03:325,643372,420,195131,919,00031,739,00033,890,304
6Oct 11, 2021 03:325,662372,666,299129,983,00034,206,00034,025,472
7Oct 11, 2021 03:325,668360,939,218137,672,00026,712,00034,189,312
8Oct 11, 2021 03:325,669366,608,598136,667,00027,744,00033,533,952
9Oct 11, 2021 03:325,670378,058,705137,544,00026,888,00033,726,464
10Oct 11, 2021 03:325,683377,887,709136,316,00028,484,00033,759,232
11Oct 11, 2021 03:325,683380,406,462132,239,00032,566,00033,800,192
12Oct 11, 2021 03:325,683359,687,422130,682,00034,133,00033,759,232